Lose life if actor is standing still!
Mathiashelseth99
Member Posts: 37
How do you make your actor loose a life if it is like not moving for like 5-7 seconds?
Comments
timer
after random 5, 7 seconds
change game.hp to game.hp -1
is all the attributes already in the creator?
if you're also moving on the y then do
if self.motion.linear velocity.X = 0 and self.motion.linear velocity.Y = 0
do
after random(5,7) seconds
change game.hp to game.hp-1
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
it's not self.motionline.x it's self.motion.linear velocity.x (and y)
good luck
-Timo-
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮