0
Answered

Collision check...standing up under object

DigitalProphet 2 weeks ago in Game Creator updated by Marti (Lead Developer) 3 days ago 1

Hi, I posted this issue on the GC Discord chat. I'm not sure if we are understanding each other. I set trigger with an action that when the C key is pressed the player goes into the crouch state and sets the player height property to 1, then another trigger when the C key is released that it sets the state to walking and sets the player height property back to 2.  I do this so that collision is enabled for the player to crouch beneath objects. However, when doing this under an object there is no check or no default to ignore the release. It would be great if there is a check for collision on the character as I've seen used in some other alternatives. This might be there but I'm doing something wrong.

VIDEO of issue

Unity version:
2018 LTS
Game Creator version:
1.1.5
Answered

Hi DigitalProphet; This is by design. You need to do the check using the condition Character Capsule and check if the player can fit with the desired height.


Otherwise, it would change the state of the character to "standing", but it wouldn't change the capsule height.