Auto-Runner Template question

Get help using Construct 2

Post » Tue Dec 20, 2016 5:06 pm

I've been using the Auto-Runner template and was wondering, Is there a way to have the player run and land on the platform couple of pixels lower than how it is now?

In the template, the player runs and lands on the top of the platform, i wanted it so that it runs and lands a little lower on the platform.

I hope i've made it clear to understand what i'm looking for.

I've tried to do it but i'm finding it difficult to do considering that the platform has a solid behaviour so the player will always land on top.

Would appriciate any help on this.
B
5
S
2
Posts: 126
Reputation: 876

Post » Tue Dec 20, 2016 5:19 pm

The platform he lands on has the solid behavior right? What you could do is remove the solid behavior from it.

Create a new sprite, set it to invisible, give that the solid behavior, resize it to the length (lengths) and width you desire and place it just over the previous platform.
Just set it a little lower though until you get to where you want your player to land. Test and modify it until you have your player hit the desired spot on the platform.
B
33
S
15
G
10
Posts: 95
Reputation: 7,672

Post » Tue Dec 20, 2016 5:35 pm

Or you could try and move the top part of the collision box down a couple pixels.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Wed Dec 21, 2016 12:06 am

@jeffige

I got excited when i read your suggestion as i didn't think of that and seems obvious, but unfortunately, the platform is a tiled background so unless i'm mistaken, you can't modify collision points.

@staleevolution

Thanks for the suggestion. Thing is, the platform generates at random width and height, so how do i get the platform and invisible sprite the same when they're created?
B
5
S
2
Posts: 126
Reputation: 876

Post » Wed Dec 21, 2016 6:07 am

You need something like this

Platform = on created = Platform create object invisible platform
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Thu Dec 22, 2016 5:00 am

I think PixelPower's suggestion might work with what you asked me.
B
33
S
15
G
10
Posts: 95
Reputation: 7,672

Post » Thu Dec 22, 2016 2:52 pm

tomhaiger wrote:@jeffige

I got excited when i read your suggestion as i didn't think of that and seems obvious, but unfortunately, the platform is a tiled background so unless i'm mistaken, you can't modify collision points.



Could you not move the collision box on the avatar up a couple of pixels instead?

Alternatively, how about changing the tiled background for a tilemap? You can set the collision individually for each tile.
B
21
S
9
G
4
Posts: 473
Reputation: 4,285


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests