Player slides after i press down to crouch

Get help using Construct 2

Post » Thu Oct 11, 2012 5:26 pm

For example, when im holding left/right to walk and i press down to crouch, the crouch animation plays but it also slides depending if im holding left/right. It slides right away but stops.

How can i fix this?

Thanks


B
10
S
4
G
3
Posts: 46
Reputation: 3,036

Post » Thu Oct 11, 2012 6:34 pm

How do i make the character stop if i press down to crouch?

If that makes more sense.
B
10
S
4
G
3
Posts: 46
Reputation: 3,036

Post » Thu Oct 11, 2012 6:38 pm

you could make the top speed increase or decrease
B
20
S
8
G
2
Posts: 122
Reputation: 3,202

Post » Thu Oct 11, 2012 6:54 pm

Don't you just set the Deceleration to 0?
B
16
S
6
G
5
Posts: 90
Reputation: 4,324

Post » Fri Oct 12, 2012 1:53 am

Hey guys, I had to put the platform deceleration to 5000, that stopped the player from sliding but right after I let go of the down button, the player moves 1 pixel. Don't understand.



B
10
S
4
G
3
Posts: 46
Reputation: 3,036

Post » Fri Oct 12, 2012 2:04 am

Easy ! Just make an event that says ...

On "LeftButton" clicked
(Inverted) If "Crouchbutton" is down
-- Platform : Simulate movement " Left "

On "RightButton" clicked
(Inverted) If "Crouchbutton" is down
-- Platform : Simulate movement " Right "

No need to tweak the platform settings ...

Cheers !!kbdmaster2012-10-12 02:06:19
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt and 21 guests