Did he fall too far?

daverennerdaverenner Member Posts: 133
edited November -1 in Working with GS (Mac)
I have characters that fall off cliffs. How can i get the distance he falls to determine if its too much and he should go splat? I tried getting the Ypos of when he is on the cliff and the Ypos off when he landed then subtract the 2 and figure the distance that way, but it didn't work.

Comments

  • HachikoHachiko Member Posts: 330
    you can do something like:
    rule
    if self.position.Y is less than Y of the cliff-desired amount of distance

    splat.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You can also test if Motion.Linear.Y is greater than a certain amount.
Sign In or Register to comment.