Simulating an infinite runner

Get help using Construct 2

Post » Mon Feb 17, 2014 10:16 pm

CAPX: https://www.dropbox.com/s/6ylu4xktzxcv3qk/Infinite%20Smasher%201-0.capx

UPDATE: https://www.dropbox.com/s/was72iffd1nslmk/Infinite%20Smasher%201-1.capx

I've been challenged by @NotionGames to make an infinite runner as I learn how to better use C2. Challenge definitely accepted! ...buy oye, am I hitting a roadblock early on.

When you run the layout, you should see four instances of the Ground object...top and bottom (picture a corridor from the side). I have it set up so that when the instances reach a certain X-coordinate, they'll cause the GroundSpawn objects to spawn new instances of the Ground object to keep the simulation of an endless corridor going while also keeping the overhead way down. No more than 4 or 6 instance of the Ground object should be needed at any given time according to my reckoning.

However, no matter how carefully I look, I cannot figure out why the first four instances of the Ground object - at the start of the layout - do not trigger any new instances via the GroundSpawn. Could someone point out to me the problem, please, so I can understand what I'm missing? I'll work out a solution (although I won't mind if you make a suggestion, either).

THANKS!Rhindon2014-02-18 01:45:00
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
139
S
22
G
8
Posts: 774
Reputation: 14,822

Post » Mon Feb 17, 2014 11:13 pm

@ArcadEd - Thanks, my friend. Your imagepoint suggestion was actually something I was trying before, but had trouble implementing. I think it's because of my failure to see the fact that I was spawning new Ground instances over existing ones. I'll try that again...
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
139
S
22
G
8
Posts: 774
Reputation: 14,822


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests