How do I create a continuous runner platform

Get help using Construct 2

Post » Sat Sep 20, 2014 12:48 am

I want to create a runner platform that does not randomize the height or width of the platform, it's just one straight continuous path.
Last edited by Slicksz on Sat Sep 20, 2014 1:00 am, edited 1 time in total.
B
6
S
1
Posts: 89
Reputation: 619

Post » Sat Sep 20, 2014 12:54 am

Do you mean auto-runner or infinite platformer? You can refer to Construct 2 built-in templates, that should give you a clear idea to implement it.
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Sat Sep 20, 2014 12:59 am

Yes that's exactly what I mean, but you know how the template creates random platform widths and heights? I just want one straight width and height for the entire game. I want to make the character run on one straight platform, let's say a street for example which doesn't have random lengths to it, it's just one long road. That's all, thanks if you can help me out!
B
6
S
1
Posts: 89
Reputation: 619

Post » Sat Sep 20, 2014 1:51 am

I just added a quick tweak to the auto-runner template to prevent it from creating random platforms, instead it should now has a continuous platform.

continuous_platformer.capx
You do not have the required permissions to view the files attached to this post.
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Sat Sep 20, 2014 5:56 am

Thanks a lot @Herks you really helped me out
B
6
S
1
Posts: 89
Reputation: 619

Post » Sat Sep 20, 2014 6:55 am

Please note that I've not test the example extensively, I bet it will contain some nasty bugs :)
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Sat Sep 20, 2014 9:46 am

Thanks for that, I did notice it had some jerky movements, Idk how to get rid of that, but I'm sure I'll think of something.
B
6
S
1
Posts: 89
Reputation: 619

Post » Sat Sep 20, 2014 1:48 pm

Yeah, it's quite lag as the code creates block at origin point first, before setting its new position. Try the below code instead, it should fix the problem now.

screenshot.png


And here's the fixed capx:

continuous_platformer.capx
You do not have the required permissions to view the files attached to this post.
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Sat Sep 20, 2014 1:55 pm

:O You're the best man! Thanks so much!! This game is one step closer to being great because of you! Btw what anime you into?
B
6
S
1
Posts: 89
Reputation: 619

Post » Sat Sep 20, 2014 2:11 pm

If I'm going to talk about this, it will eventually become an endless list :)
But NGNL, TK Ghoul, and AGK would be my favorites this year.
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests