Thank you for checking this out ! The enemy state machine is a bit messy indeed. Will keep in mind your comment if I come back to this project and try to improve it :)