How would i make a duck function?

i suggest to work with finite state machine.
http://compilgames.net/wiki/doku.php/gdevelop/tutorials/howtofinitestatemachine

2 Likes