scene attribute size wrap x
Gdogg
Member Posts: 95
works great as a background continuous motion, however it also keeps multiplying spawns, causing the game to crash, is this a bug in game salad, i want this just for the actor not the scene,
need help cheers
Comments
If you want a specific actor to wrap and not every actor, then you need to uncheck the scene wrap and make the actor wrap manually. This is done by making a rule that says (if the actor is moving left, for example) When self.position.X ≤ 0-self.size.Width/2, Change Attribute self.position.X to 1024+self.size.Width/2.
*This assumes iPad Landscape. For other platforms, you would substitute a different scene width for 1024.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
thanx for the reply, i have tried this, it creates gaps, which im not after. it needs to be like wrap x but not in scene but in actor if possible, thats what im realy after.
thanx all for your replys
if you're getting a gap, adjust the number 1024 to something less until you don't get the gap anymore.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
thanx for the reply, nope still not working.
ive worked it out... i should have thought of it before.... DOUBLE UP.. MAKE TWO OF EACH ACTOR, that way the gap will be filled.