player gets stuck on moving platform

Get help using Construct 2

Post » Fri Aug 23, 2013 2:19 am

Okay, so I have a platform that has a sine behavior. I never noticed this before, but whenever the player is on the moving platform, He can't jump until it reaches it's highest point. What do you think could be the problem?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 2:33 am

Works fine for me. Post a link to the .capx please.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Fri Aug 23, 2013 3:07 am

http://www.mediafire.com/?su2jes4wxpxdbyy
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 3:33 am

It's the gravity. You're setting it to -1650 instead of 0 so he can't jump. I don't know exactly where it broke it as it's late now and I need to sleep. Delete all the gravity stuff on the event sheet and it's fixed though. Possibly a break in the logic around the press W/A/S/D stuff.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Fri Aug 23, 2013 1:57 pm

I changed the gravity to 0, but it just made me jump and get stuck in the air. Got any more suggestions?
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 3:07 pm

The issue is the Else on event 31. Get rid of the gravity setting there. I'm not sure why you have gravity in there at all really.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Fri Aug 23, 2013 3:22 pm

It worked! thanks, bro.

I'm still kind of new to it. I've been looking for tutorials on how to make a suitable ladder, and the tutorial said to put gravity to 0 on "else"
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Fri Aug 23, 2013 3:33 pm

Oww ok. Be careful when using Else! Good luck! :)
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests