If I was making a game in which the player controls a shark and tries to catch fish, how could I program the fish to move away from the shark when the shark gets close? Any suggestions would be greatly appreciated.
Offline
I think the easiest thing to do is add in this script:
Though I don't know how you've programmed the fish, so I can't be sure. Also you can edit that 100 to change how close the shark can get before the fish swims away.
Last edited by Kileymeister (2011-06-22 22:55:35)
Offline
Thanks, Kileymeister - I'll give it a try.
Offline