Player Self rotation fix/rule
Dantipple
Member Posts: 12
Hi Everyone,
I have a actor which moves along platforms and jumps - I've added a rotation rule but I only want this rule to apply when the object is in the air and not touching the platforms, does anyone have any ideas how to do this?
Thanks
I have a actor which moves along platforms and jumps - I've added a rotation rule but I only want this rule to apply when the object is in the air and not touching the platforms, does anyone have any ideas how to do this?
Thanks
Comments
create a new rule on your actor that moves.
If actor overlaps or collides with platforms
Change attribute game.touch to 1
Otherwise
Change attribute game.touch to 0
Put another condition on your rotation rule
game.touch is = 0
then rotate
You help is appreciated!
Change attribute self.rotation to 0