0
Answered

Crouch

SS_Slayer 8 months ago in Other updated 8 months ago 2

Hello, 

Thanks to your wonderful tools.

I was successful to make my character crouch by holding a key, but the problem is that it can't walk under objects. how can I fix it? 

I've figured out that by decreasing the height of the character controller capsule, it can make it through but I wan it to decrease the height when only I'm holding the crouch key.

Unity version:
2019.2.5f1
Game Creator version:
1.1.1

Answer

Answer
Answered

Hi SS_Slayer;

As you say, you need to decrease the height of the character. One way of doing this is by using the "On Key Down" to decrease the height and "On Key Up" to restore the height to its original value.

You may also want to use the Condition "Character height" to detect whether the character can stand up in the middle of a vent tube.

GOOD, I'M SATISFIED
Satisfaction mark by SS_Slayer 8 months ago
Answer
Answered

Hi SS_Slayer;

As you say, you need to decrease the height of the character. One way of doing this is by using the "On Key Down" to decrease the height and "On Key Up" to restore the height to its original value.

You may also want to use the Condition "Character height" to detect whether the character can stand up in the middle of a vent tube.

thanks, I fixed the height and it can crouch under objects.

elmano, it's been more than an hour that I'm working on conditions but I couldn't set the right settings, can you go through details? my character crouches "on key down" and "on key up". I have created a cube and I try crouching under it, If i release the key, my player will stand up or it'll be bugged

besides, can you give me your descord server's adress?