Physics+Platform

For questions about using Classic.

Post » Tue Sep 20, 2011 6:33 pm

Hod do I use platform and physics togother.

This doesn't work. When I add physics to platform something is wrong.

HELP
B
4
G
1
Posts: 15
Reputation: 562

Post » Tue Sep 20, 2011 6:39 pm

Remove the behaviour and use:

On key Up is pressed:
+player is overlapping (attribute) at offset 0,1:
++ player variable jumpstate == 0:
Set player velocity to Y: -jump strenght, X: player x velocity
Set player variable jumpstate to 1

Or something...
You should add a variable (jumpstate) that resets when overlapping the attribute, and so the jump cannot be made twice.

I use that method in my cavestory game I posted a while back

Then for horizontal movement:

While Left is down:
+ velcoity x of player < 0-max speed:
set player velocity to y: player y velocity, x: player x velcoity-accelerationUrled2011-09-20 21:20:44
B
18
S
4
G
1
Posts: 413
Reputation: 2,512

Post » Tue Sep 20, 2011 9:19 pm

Thanks... :)
B
4
G
1
Posts: 15
Reputation: 562


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests