Wrap Around Level: Joust Style

WayneAdams

  • Posts: 79
Hey Guys, I've searched the stencil forge and the forum and I'm looking for a way to one screen levels that wraparound like the old Joust game.

Right now I'm thinking I should put sensors down the sides of the level and tell the player to "warp" to the adjacent sensor when touched.. but it doesn't seem like an elegant way.

Anybody got any suggestions?

Thanks

RENGAC

  • *
  • Posts: 333
Something like "if x of actor > screen´s width, set x of actor to 0" otherwise "if x of actor < 0, set x of actor to screen´s width".

Hectate

  • *
  • Posts: 4643
RENGAC has the right idea, just remember that you'll want to make the actor always simulate (always active) because otherwise he'll go off the right edge and not show back up.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

WayneAdams

  • Posts: 79
Thanks a lot guys.. I got this working using regions and the suggested code.. in retrospect this is a very noob question. :) Thanks for the help.