Make only one actor use scene wrapping?
blue_elephant
Member Posts: 505
Is it possible to have only one actor use scene wrapping? In my side scrolling game the ground moves past to give the effect of moving but the ground has to be the only thing that wraps or it will completely mess up my game.
Thanks
Thanks
Comments
when self.position.x = -XXX
change attribute selt.position.x to XXXX
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
When self.postion x =< 0
change self.position x to 320
You have to include the < symbol as the X postion may never equal exactly 0.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Use a number half the width of the actor.
Example:
Actor width = 100
When self.postion x =< -50
change self.position x to 370
This way the actor is out side of the camera when it changes position.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page