Sunday, July 19, 2009

Sprites : Follow Mouse / Hungry Fish


This "follow-mouse fish" is the third sprite in the "Animals" category, which already has scripts. It basically demonstrates the usage of "forever if" block ("forever" under a certain condition). If we run this script, the fish will move towards the mouse position and stop immediately if it's close enough to the mouse (i.e. less than 10 steps).

No comments:

Post a Comment