Background scrolling effect on y axis.
Hi guys,
since my first game is waiting for review, i'm planning to finish up my 2nd game which is a platform jumping game. I am trying to make the background scroll seamlessly on y axis. Can someone point out an example for me? I remember seeing it somewhere using interpolate and 2 similar backgrounds put side by side but cannot find that post anymore.
since my first game is waiting for review, i'm planning to finish up my 2nd game which is a platform jumping game. I am trying to make the background scroll seamlessly on y axis. Can someone point out an example for me? I remember seeing it somewhere using interpolate and 2 similar backgrounds put side by side but cannot find that post anymore.
Comments
BG RULE:
when attribute self.position.y > 0
-> Spawn Actor (BG)
x position = self.position.x & y position (relative to SCENE) = self.position.y - self.size.height
So, basically when this image goes up with linear moment it will create a duplicate just behind it..it gets wiped after it goes off screen.
Another Rule:
when attribute self.position.y > self.size.height
->destroy actor
`````This works BEST when the bg covers the screen/positioned properly...
Good luck! Heres a link to a template i just made for it:
http://www.fileserve.com/file/BG7XJfq
If someone knows a more efficient way i would love to know myself!
It isn't parallax scrolling what he is on about, parallax scrolling is different images moving at different times to give a 3D depth effect.
What is the background going to be? A sky? If so there is a miles easier way to do it which uses virtually no resources.
Ace
" If so there is a miles easier way to do it which uses virtually no resources."
Thanks for the info...!
two for the crossover of images onscreen and a third which is moving to the position to be ready to be visible (dependant on direction of scroll)
@george Email me more details and I'll set up a file for you as I have some free time tonight. Info@instantmashgames.com
Ace