How do I make the player automatically jump on platforms

Get help using Construct 2

Post » Sat Aug 09, 2014 4:01 pm

Hello everyone. I'm working on a vertical platform game, similar to doodle jump and i couldn't figure out how to make the player automatically jump from one platform to another. Help would be much appreciated :D
B
4
Posts: 10
Reputation: 212

Post » Sat Aug 09, 2014 9:43 pm

Player on collision with platform - Player simulate control jump.
"must use platform behavior".
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Aug 10, 2014 4:43 pm

Thanks a lot, it worked. But one more thing, how can i set the jump distance, let say that some platforms throw you higher.
B
4
Posts: 10
Reputation: 212

Post » Sun Aug 10, 2014 5:01 pm

Personally I'd use an "overlapping at offset" event to set the jump strength of your platform object,
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Post » Mon Aug 11, 2014 5:38 pm

Mr E Bear wrote:Personally I'd use an "overlapping at offset" event to set the jump strength of your platform object,


Could you be a little more specific. I tried : "platform object" is overlapping "player" at offset (0,0) and the action was: player set platform jump strength to...a number that i set. I don't know if this is how i supposed to do but the result is not the one i want.
B
4
Posts: 10
Reputation: 212

Post » Mon Aug 11, 2014 6:01 pm

I'm not sure if I can be more specific, but I'll explain it from another angle:

Your current set up has it so that you player automatically jumps when it comes into contact with a platform.

My suggestion is to alter the jump strength just before the player hits the platform, so that when it makes contact it jumps up at a stronger/weaker strength than before. If you're mimicking DoodleJump your best bet is to the use a Y offset, so your event would read something like "at offset(0,10)".
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Post » Tue Aug 12, 2014 12:50 am

player on collision with platform A - player simulate control jump

player on collision with platform B - player simulate control jump and set player jump strength to 1000
else - set player jump strength to 500
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Tue Aug 12, 2014 4:58 pm

Thanks a lot , it worked after all
B
4
Posts: 10
Reputation: 212


Return to How do I....?

Who is online

Users browsing this forum: Rhindon, YoHoho and 23 guests