There are some parts in my game where my character enter "crouch mode" to cross some tight areas (I'm using the CTRL key), but if I press the CTRL key again, while crouched in these areas, my character will stand up and get stuck forever.
So I'd like to know if there's a simple workaround for this, something like:
If the char is in the tight area AND is in crouching mode, the CTRL key is disabled (so he won't stand up under these conditions)
If this is possible, how do I do it?
Someone please help in simple words cause I'm not good with the programming part of C2!
Thanks in advance
Develop games in your browser. Powerful, performant & highly capable.
You could assign a "IsCrouching=true" variable to the player instance, and check it before standing up.
thanks, I'm not sure if I can make it, but I'll try!
I have no idea how your layout looks like.
I suppose it is close to this ...
https://drive.google.com/open?id=0B1SSu ... GhPU3ZkSjA