View Single Post
Old
mcelroy32400
Junior Member
 
Status: Offline
Posts: 7
Join Date: Sep 2012
Default 12-12-2012, 05:28 PM

I like HaloMike's answer. Another cheap/jimmy-rigged way of doing it is to make the fish move up (or down) like 20 meters (or however far away you want) when the fish is eaten the first time. This way the penguin will never get close to it again. You could do it as a class method, something like fishEaten. Make it move up (or down) in 0 seconds and that will launch the fish away immediately, removing the possibility of the penguin getting too close ever again. (Another variation is to create a dummy object where all the fish could immediately get moved to once they've been eaten, again using 0 seconds to make it happen as though it is a do together without actually using the Do together.)

Like I said, HaloMike has the better programming solution.
   
Reply With Quote