Creating Platformer with 2D background

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
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

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Could you not just put a rule on the background that says:

    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
  • butterbeanbutterbean Member Posts: 4,315
    Yes, I will try that :)

    Thanks Quantum!
Sign In or Register to comment.