How to make a parallax background

Yeah, there are a few ways. The simplest is to use a tiled sprite as the background, and then change it’s offset. The sprite never moves, but it’s texture is redrawn at a slightly different position every frame.

The event action that does it all :

image


This is the image of the tiled sprite

Wall_plain

This is it lengthened and made taller :

image


And this is what it looks like :

TileSpriteScrolling

2 Likes