I. AM. ASTONISHED. Good work!
Your answer here is : State Machine.
It's tricky and hard, (breaking teeth on this on my next game…) but it's a good way to start. There is a very good plugin for C3 called FSM for this.
Doc here : gameprogrammingpatterns.com/state.html
Okay, so i'm the 100 :) Congrat' Laura !
Yehaa !
Member since 31 Jul, 2015