Rux wrote:Easy. Go to the monster's actor control. Then
add a create actor event then create timer. Name the timer and set the duration to 60000.
Then add a timer event and select the timer you made, and select the action create actor. Select the monster to create and set the monster's coordinates.
Add that and then it should work. Note: If there is more than one type of enemy you have to do all these steps again for that actor.
That will not work
(if the Actor is Destroyed)
make a Spawn Point Actor(Call it SpawnPoint, make it just a normal Actor),
set the create at Startup to No,
then make it create the Timer with the Duration of 60000 on the create Actor event(when Rux Said with the Creating on the timer event of that Timer.)
and on the create Actor Event of the Monster use this Code,
- Code: Select all
int i, hit;
//also make a variable(string) called NAME
for(i = 0; i < ActorCount("SpawnPoint"); i++)
{
sprintf(NAME, "SpawnPoint.%d", i);
if(distance(x, y, getclone(NAME)->x, getclone(NAME)->y) < 50)hit = 1;
}
if(hit == 0)//put the create Actor->SpawnPoint Code Here.