Position Limiter

Discussion in 'Buildbox 3.0' started by mamal, Aug 14, 2019.

  1. mamal

    mamal Boxer

    Joined:
    Jun 8, 2019
    Messages:
    43
    Likes Received:
    4
    hello ,
    i'm making a game with buildbox3 build 3152
    and it's something like doodle jump (i'm working with the 2d mode of bb3)
    and well i want the character to be freeze on the z axis ( i want it's position.z be a constant value)
    but when the character collides with obstacles it's position.z changes and i've written a script and from it's update i'm telling that it's position.z should be a specified value but it doesnt work !
     
  2. Thud

    Thud Boxer

    Joined:
    Apr 9, 2019
    Messages:
    49
    Likes Received:
    20
    if you change the "Position Factor" to 0 in the objects start node for a given axis that should freeze it there shouldn't it?
     
    mamal and Miko Buildbox like this.
  3. mamal

    mamal Boxer

    Joined:
    Jun 8, 2019
    Messages:
    43
    Likes Received:
    4
    oh thank you!
    i kinda played out with components and i wrote some code detecting the object collided for doing some action and set the scale to 0,0,0 in start node , i kinda made it look like the trigger collider mode in unity
    but i guess i could've just used this earlier :))))
    but again thanks for your help.
     
  4. Thud

    Thud Boxer

    Joined:
    Apr 9, 2019
    Messages:
    49
    Likes Received:
    20
    No problem. I feel like I almost helped someone here. I can't believe it.
     

Share This Page