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. Snozzberry

    Snozzberry Avid Boxer

    Joined:
    Apr 9, 2019
    Messages:
    103
    Likes Received:
    62
    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?
     
  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. Snozzberry

    Snozzberry Avid Boxer

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

Share This Page