How do I get my player to jump high when it hits a object?

Get help using Construct 2

Post » Sat Apr 02, 2016 5:17 pm

I'm creating a platform based game. I have a mushroom sprite in my game. I want my player to jump when it touches the object. I set my code to look like " When player is overlapping mushroom- player set platform double jump enabled" It doesn't work.
B
11
S
3
G
2
Posts: 11
Reputation: 1,711

Post » Sat Apr 02, 2016 5:25 pm

hmm So you just want the mushroom to enable the ability to jump another time in the air, not to automatically send your player bouncing up?

If you want to enable a double jump ability, I'd change the overlapping condition to a "on collision with" condition and see if that doesn't fix the issue.
You may also ant to set up a variable that counts the number of jumps when doublejump is active, that way it can be disabled when it hits a certain value.
B
65
S
39
G
24
Posts: 352
Reputation: 18,106

Post » Sun Apr 03, 2016 6:27 pm

Well actually I want the mushroom to automatically send my player bouncing up. How can I make this happen?
B
11
S
3
G
2
Posts: 11
Reputation: 1,711

Post » Sun Apr 03, 2016 8:58 pm

You can try this:
"Player" on collision with "mushroom" --> Player Set platform vector Y to -1000
B
38
S
10
G
9
Posts: 212
Reputation: 6,995

Post » Mon Apr 04, 2016 12:28 am

Problem solved! Thanks for responding. :)
B
11
S
3
G
2
Posts: 11
Reputation: 1,711


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Kin, ratboy3, tinhofiel, totoe and 39 guests