Moving actor without going off screen
Masterdon
Member Posts: 3
Hey folks,
My actor is only moving left, right when I'm touching it, the problem is if I move too fast from left or right the actor is going off screen. I would like to make it stop before he's going off screen.
I would like to know the rule to prevent the actor going to far on screen...
thank you.
My actor is only moving left, right when I'm touching it, the problem is if I move too fast from left or right the actor is going off screen. I would like to make it stop before he's going off screen.
I would like to know the rule to prevent the actor going to far on screen...
thank you.
Comments
when attribute player.position.x is > 0
when player position.x is < 480
put movement code here
that should only allow the player to move when it's position is within 0 and 480.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left