Little Help with wrapping and spawner jumping plz.
Hi Guys,
First let me say thank you for reading this and taking the time to help me if you can. Here is my problem,
I'm working on a simple game that I hope to submit into the GameJam. I have a moving background that I've got wrapping in Y as to appear like it's scrolling downwards, and I have a spawner positioned at the top of the screen (iphone portrait) that spawns and "rains" down items. However what I'm facing now is when I set my scene layer for the background to wrap Y, (all other actors including the spawner on set on another layer set to non-scrollable), I find that my spawner is duplicating itself or something and now spawns from the top (where it should), but also from about 1/3 up from the bottom of the screen. I am using Windows Creator, so I'm aware that things aren't as well polished as the Mac one, but I can't figure this out for the life of me. Could someone please point me in the right direction to resolve this and perhaps explain why this is occurring?
Thank you guys so much!
Comments
Update: I have found that it is not the spawner which is moving. For some reason my objects that are spawning in and "falling" along the Y axis are also wrapping. Now my question is how to stop them from wrapping considering I can't place them on a layer by themselves because they are spawned in. Any advice? Thanks
When Scene Wrapping is turned on, every actor in the scene will wrap around the screen.
You'll either need to manually stop the wrapping of your falling actors (i.e. destroy them when they reach the bottom of the screen) or manually wrap your background and turn scene wrap off.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@ jamie_c thanks for the advice! Can you plz advice me on how I can manually wrap the background image? TY
I have a tutorial on youtube about that:
Also if you wanted to go the route of destroying the falling actors that might be quicker. You would add a Rule to the falling actors that says:
The '5' above might need to be adjusted based on how fast your actors are falling, but I'm sure you get the idea.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
OH WOW!!! That's exactly what I needed!!! Thank you so much! Your video is awesome! Much Respect to you!!
You're welcome!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page