Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: baykuss on March 15, 2021, 12:49:09 PM
-
Hello everyone. I am relatively new in the asset PlayMaker and i would like to include a door mechanic in my game, although i searched for it, i couldn't find a tutorial in YouTube. I know that i should use "Trigger2D Event" while making it but i am unable to do it on my own. So i need your help. Thank you :)
-
Hi.
if it should automatically trigger.
Make a trigger larger than the door and a collider on the door itself.
then set trigger 2D event on trigger stay.
and set a transition, when triggered you can disable the collider (and play some animation)
then set another trigger 2D event with a trigger exit and a transition to the next state.
there you can enable the door collider back and then transition back to the state with the trigger 2D event on trigger stay.