Endless Falling.

For questions about using Classic.

Post » Wed May 18, 2011 7:32 am

I'm trying to do an endless fall for a certain amount of time.

+ System: Is global variable 'FallCount' Less than 5
+ plaMask: Y Greater or equal 512
-> plaMask: Set Y to plaMask.Y-256
-> Sprite3: Set Y to Sprite3.Y-256
-> System: Add 1 to global variable 'FallCount'

That's what I got. It works, and seem seamless, but after a while, you'll notice the object is flashing and eventually you'll notice it completely.

Here's an exe so you can see what I'm talking about.
http://www.mediafire.com/?hjj4mw1agpbf4vz
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Wed May 18, 2011 7:42 am

I did an endless running part in the previous version of my game. I let the character stay in the middle of the screen and just moved the background from right to left.

I cut the background in 5 objects and when the background object was in the layout, I spawned one of the 5 objects on the right side of the layout. That way the background never ended.

As an addition I let the system randomly select one of the 5 objects, so the background wasn't the same all the time. And when the background was at a certain point on the left side of the layout, I deleted it. (To save memory)
B
2
S
2
G
1
Posts: 109
Reputation: 1,068


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests