CLONE ACTOR TROUBLE

Talk about making games.

CLONE ACTOR TROUBLE

Postby blackguy95 » Thu May 22, 2008 10:01 pm

well i having a problem with clone actors.
im making a strategy game where when you click on a soldier he will move to the closest enemy and attack it.
but theres one problem, when i click on them they all move to the same enemy and they go in the order they were created in.
so what im asking is how do you make an actor move to the closest "enemy" actor if the enemy actors are all clones?
User avatar
blackguy95
 
Posts: 7
Joined: Sat Jan 05, 2008 1:33 am
Score: 0 Give a positive score

Re: CLONE ACTOR TROUBLE

Postby makslane » Fri May 23, 2008 12:24 am

Try the getAllActorsInCollision function.

Read more here:
http://game-editor.com/docs/script_refe ... ncollision
viewtopic.php?f=2&t=874
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron