Adding different gameplay feature for Autorunner?

Get help using Construct 2

Post » Tue Jul 22, 2014 3:08 pm

I had an idea for my Autorunner game which i'm struggling to implement, so i hope someone can help me out.

I have my Autorunner game, which is pretty basic where you jump from platform to platform and see how far you can get. I wanted to add to the gameplay by including platforms that have obstacles that you need to jump over, and you get extra points for jumping over these obstacles, I want it so that those platforms can appear at any time.

Just to give an idea of what i'm after, you're playing the game as a normal Autorunner, jumping from platform to platform and every so often you'll end up on a platform where you have to jump over obstacles to get past (These platforms are longer than the usual ones but can vary as to how long they end up) and then return to jumping from platform to platform and so on.

I've found a capx on the forums that more or less has what i'm looking for with regards to having a platform with obstacles to jump over, which i've posted (Credit goes to the member who posted it, i apologise but i can't find their username even after searching for it again)

I'm basically looking to apply this game into the Autorunner game. I would appriciate it if i could get help on how to do this. Any examples using the Autorunner Template would be helpful.

I've edited this capx as it was in Polish, and i also tweaked the gameplay a bit and changed the sprites so that they match the Autorunner Template.

Thanks for taking the time out to read this, hope i've made clear what i'm after.
You do not have the required permissions to view the files attached to this post.
Image ImageImage
B
6
S
2
G
1
Posts: 87
Reputation: 1,206

Post » Tue Jul 22, 2014 3:33 pm

Here's an example capx. I'm creating an obstacle in the middle of every platform that is longer than 350 px with a random height between 32 and 128 px. You can change those parameters. :)

autorunner-obstacles.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Tue Jul 22, 2014 4:22 pm

Thanks, that works quite well but i have a few issues.

It works fine on the Autorunner template, but when i try to implement this to my Autorunner game i get problems where some of the blocks disappear when i'm near them, while others stay. This may be because I tweaked the platform coding from the Autorunner template, i'm not sure. I've posted a picture from my game where i've inserted what you've done so you can see if there are any issues.

Image


I also get issues where some of the blocks are extremely high that they go off screen. I've tried changing it from (1 + random(3)) to (0.5 + random(3)) but the blocks are still too high. I think this just requires tweaking, so i'll have a go on that a bit more.

Also is there a way to make these occur a bit more frequently?
Image ImageImage
B
6
S
2
G
1
Posts: 87
Reputation: 1,206

Post » Tue Jul 22, 2014 4:44 pm

Share the capx, if you don't mind, so I can check it. Are you using a box exactly like mine? I mean, is it a 32px x 32px tiled background?

Regarding the frequency, you can control it independent of the platform width. I used it to make a fast example. But you may trigger obstacle creation any way you want. :)
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Tue Jul 22, 2014 6:40 pm

Yes I am using the same box I copied and pasted it, I just painted it a different colour so it's more clear to see. My capx file is over 2mb so I can't post it here. I could maybe email it to you if that's OK.
Image ImageImage
B
6
S
2
G
1
Posts: 87
Reputation: 1,206


Post » Tue Jul 22, 2014 10:56 pm

Thanks. I've sent my capx to your email address.
Image ImageImage
B
6
S
2
G
1
Posts: 87
Reputation: 1,206


Return to How do I....?

Who is online

Users browsing this forum: Twili and 1 guest