How do I make an actor wrap around from one side of a scene to the other

Modified: 2008/06/16 17:54 by SuzanneH - Categorized as: Game Creator, How To Guides
Edit

Make 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-WrapAroundScene

Details:
  • 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
Image

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
Image

Change X or Y property of Myself (the current actor) (Click the image to view full size)


Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.