if i read you correctly, you want the spawning speed to be changed? if so:

Code:

var _time;
var _speed = 5; //set the spawning speed here, higher is slower
while (j!=0)
{
_time += 1*time_step;
if (_time > _speed)
{
loc.y=random(3000)-1600;
loc.x=random(10100)-5400;
ent_create(enemy,loc,enemy_action);
j-=1;
_time = 0;
}
}



if you have a6.4 or later this will fix your problem, if not, change time_step to time

this will allow you to set a time for it to spawn each one, change the _speed value to whatever speed you want them to spawn at, the higher the number, the slower they will spawn, if you want a second before another spawn it should be set to 16, 2 seconds is 32, etc

Last edited by Manslayer101; 06/26/07 21:52.

- aka Manslayer101