Sidescroller platformer or shoot-em-up
butterbean
Member Posts: 4,315
If anyone has created either a sidescrolling shooter, or platformer with a "looping background", can you show me a link to how you've looped the background in your game, or how it is done within the program
It has really helped me in the past, thank you!
I know this topic has come up before, but I wanted to see if anyone could past or link their "way" of doing it
It has really helped me in the past, thank you!
I know this topic has come up before, but I wanted to see if anyone could past or link their "way" of doing it
Comments
I guess there may be more efficient ways though. I haven't created a side scroller so I can't really say as of right now.
You could have a look in this thread: http://gamesalad.com/forums/topic.php?id=85
May be some help there, though I haven't tried it myself (it's on the list!).
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I do remember that thread, but I thought it would be easier for me to do if someone could paste an example from their own game prototype
I understand the concept or idea, but thought it would be easiest to see a sample, I'll go ahead and try a few things
i created the background image, making it loop-able.
then inside gamesalad, i created a actor for that background image.
then all i did was duplicate the actor inside my scene and place it right beside each other.
this way i didnt need a huge image, since i made the looping inside gs.
a more "professional" way would be making a rule that when the bg actor reaches a certain value in "x" the he goes back to the beginning (something like "x" + 1/2 of the image width(but this totally depends on the images width)) then you just need to find the exact point where you can loop your image.
So you literally took 2 images of the same prototype, and placed them right next to each other, and that allowed your image to loop?
Do you think you will end up doing it by placing values?
It would be a nice addition if Gamesalad came up with an attribute of some sort to loop the image over and over
Thanks Nulo!
one important thing to think about is that, unless you have a bg image that should move exactly like the foreground level (using the scrollable layers in gs), the your total bg image would always be at least half the width of your total level. (since it will move slower)