Parallax Effect / Layered Backgrounds
Nobula
Member Posts: 2
I haven't figured out how to search the forums so forgive me if this is answered already. Does GameSalad allow creators to have "layered" background or create multiple depths for Parallax effects?
If so, can someone point me in the right direction? Many thanks.
-n
If so, can someone point me in the right direction? Many thanks.
-n
Comments
Come to think of it, I believe that the "Basic Shoot Em Up" template does something like this... check out how the "Ground", "Sunset" and "Planet" graphic are treated. Very simple.
It would be nice to have background "actors" separate from movable ones... but by no means is this something worth looking at until all their other functions and features are implemented.
-n
Create a game variable... Speed
Rule for actor - If Right Arrow Down, Accelerate toward 0° at (speed)
Rule for background - If Right Arrow Down, Accelerate toward 0° at (speed)
Rule for far background - If Right Arrow Down, Accelerate toward 0° at (speed)/2
Rule for really far background - If Right Arrow Down, Accelerate toward 0° at (speed)/4
Rule for foreground - If Right Arrow Down, Accelerate toward 0° at (speed)*2
There are other ways to pull off the parallax effect, just finding which way is appropriate for the type of game you have can be the hardest part.
Maybe a constrain (with a multiplier/divider) to self.Motion.Linear Velocity.X would work better.
Again... I haven't tried that yet either. I'm supposed to be making my first iPad app right now.