I have 3 instances of football players and 1 ball on the pitch.
1. On start, the ball have to move to one random instance of a player
2. On collision with one player, the ball should move to a random instance of another player.
My Problem is: How can I target the two players without the ball?
I need some kind of synthax or path notation wich allows me to adress random instances, like:
set angle toward position: player.random (instancevariable 1 or 2)
(and a solution that only a player without ball get the pass)
I had a hard time with the manual and tutorials and it would be great to get a hint here?