how to not let an actor pass another
magic654
Member Posts: 3
i am making a spaceship game and i need to make sure that the player isnt able to move the ship off screen. i was thinking about putting transparent walls on either side of the screen, and if that is a good idea, please tell me how to not let the ship go past the wall
if your finger is on the right side of the screen, then the ship moves right. if on the left, it moves left. it stays on one line along the x axis
im using the move behavior on ipad portrait
Comments
What do you mean by off screen?
Do you want the camera to follow the actor?
Are you having collision issues (walls)?
Are you making a vertical shooter? If so here is a link that may help
Best regards,
Megaemman