Creating Platformer with 2D background
butterbean
Member Posts: 4,315
How do you create a 2D platformer where the background looks like it's moving at a different pace than the foreground? Just like you see in all the Mario and any 2D platformers where the background seems to scroll as the player is moving?
I know how to do this in a 2D shooter, but in a platformer where you sometimes have your player sitting still, just wanted to know how to go about this.... Thanks
I know how to do this in a 2D shooter, but in a platformer where you sometimes have your player sitting still, just wanted to know how to go about this.... Thanks
Comments
If right key is down, move left at speed whatever.
Thus, when you press right, your character moves right at whatever speed you set it at, and the background ALSO moves, at whatever speed you set it at.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Thanks Quantum!