TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Wrap Around Level: Joust Style
Pages:
1
Wrap Around Level: Joust Style
WayneAdams
Posts: 79
December 17, 2012, 06:25:15 am
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
December 17, 2012, 06:39:20 am
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
December 17, 2012, 07:15:40 am
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
December 17, 2012, 08:40:04 am
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.
Pages:
1