Moving to the nearest candy
Posted: Sat Dec 09, 2006 7:30 am
Hi,
When I make moveto candy (an actor), my main actor goes always towards the latest (or newest) candy actor. Is it possibly to change it so that it goes always to the nearest?
Another question:
How is the distance working with if function? I want a reaction when the distance is smaller than 50 pixels.
When I make moveto candy (an actor), my main actor goes always towards the latest (or newest) candy actor. Is it possibly to change it so that it goes always to the nearest?
Another question:
How is the distance working with if function? I want a reaction when the distance is smaller than 50 pixels.