jujubs
Member
Hello everyone. I'm trying to make a shmup in GM1.4, for which I'm using three separate spawners: starfieldspawner (which generates stars), rockspawner (which spawns big rocks) and aerolitespawner (which spawns small rocks). My goal for now is to spawn those objects infinitely, and I haven't had a single issue with starfield and rock, but my aerolitespawner just seems to stop working after a while.
All my spawners work about the same way, which is this:
obj_control (step event, stays hidden in the room):
obj_aerolitespawner create event:
I've tried counting instances of obj_aerolite and spawning another spawner, but it doesn't do anything. So, any ideas on what could be happening?
All my spawners work about the same way, which is this:
obj_control (step event, stays hidden in the room):
Code:
global.aerolitespawner_alarm = random_range(2,3);
obj_aerolitespawner create event:
Code:
timer_ = 0;
global.aerolitespawner_alarm = 30;
obj_aerolitespawner step event:
Code:
timer_ += 1;
if (timer_ > global.aerolitespawner_alarm)
{
if(!place_meeting(x, y, obj_rock))
{
instance_create(x, y, obj_aerolite);
}
timer_ = 0
}