Feel free to use this for your own projects. a simple demonstration of how to use sprites attached to other sprites in order to sense the environment around a character. The enemy will try to chase the player and switches between states of chasing and roaming/searching. control the player with the arrow keys.