Infinite parallax background

For questions about using Classic.

Post » Wed Jul 27, 2011 3:00 pm

Well, it's been a few days trying to do this properly, but i got no idea on how to do it :s

I got a situation where you go down infinitely, bouncing on platforms, and i need a background to wrap around the screen, but following the player. Think of those space shooters, but im moving back and forth instead of going always in the same direction.

I've actually got it to work, by stretching a tiled background to the ScrollYBottom and using the scroll x rate things, but well, since the game is kinda infinite, the thing can get pretty huge. While this works, it's not really useful since i cant put stuff like particles and sprites on that layer, and even though it didn't happen yet, i expect things to explode when the tiled background reaches something like 9999999 heigh XD

Could someone give some ideas on this?
Thanks in advance!
B
12
S
2
G
2
Posts: 54
Reputation: 1,665

Post » Wed Jul 27, 2011 3:23 pm

You can make use of Daiz's Flood Shooter, it has an infinitely scrolling background among other useful things. The trick is to use the texture offsetting feature to make an illusion of a moving background.

Edit: fixed bbcodeZotged2011-07-27 15:24:12
B
11
S
2
G
3
Posts: 100
Reputation: 2,150

Post » Wed Jul 27, 2011 5:42 pm

Damn, it only took one action. I feel so dumb now.
Thanks alot!
B
12
S
2
G
2
Posts: 54
Reputation: 1,665


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests