I’m making a 2D platformer with Unity. Recently, I implemented a pressure pad system. Basically, when the player triggers the pad, a door near there should be opened. The system works properly but the only problem is when the player stays on the pad, the
OpenWhenOn animation (an idle animation for when the door is open) is not playing. I want to somehow make this keep playing as long as the player is on the pad and if it exits the trigger, the
DoorClosing animation should be played. I thing there is a problem with the Animator Controller and the transitions. Thanks in advance.
This is my Animator Controller.
HasExitTime is disabled for all the transitions. The condition for the transition between
OpenWhenOn is set to true and for the transition between
DoorClosing is set to false.