EditMake an actor wrap around from one side of a scene to the other
Basic Idea: Define an 'Appear' behavior on 'Scene leave' event. Be sure to delete the default behavior of 'Disappear on scene leave'
Sample Game:
http://popfly.com/users/team/HowDoI-WrapAroundSceneDetails:
- Delete the default behavior of "DisappearOnSceneLeave" that every actor gets.
- Add a new property change behavior, that is triggered by a "Scene Leave" event. (This is in the Simple events category.)
- Select the scene leave side(s) that you want to have trigger this event.
Actor->Behaviors->Event
 Scene Leave Event (Click the image to view full size) |
- You will need to chose coordinates of where you want the actor to re-appear. Remember that (0,0) is top left corner.
- Change the X or Y value of the actor (Myself) so that it reappears at the top or bottom (the Y value), or one of the sides (the X value) of the scene.
Actor->Behaviors->Property Change
 Change X or Y property of Myself (the current actor) (Click the image to view full size) |