GML Wave type attack?

Alexir

Member
I'm trying to make a wave type effect, where an invisible object is created, shot in a direction, and every set time increment a different object spawns on top it, which is the actual attack, creating a trail of attacks. To give you an idea of what I was trying to do here is my code that is not working at all.



///Step

instance_create_layer(obj_throw.x,obj_throw.y,"Bullets",obj_wave);

This is supposed to make obj_wave, the attack object, appear every frame that obj_throw, the invisible object flying in a certain direction, is in the room, and on top of it. Obj_wave does not have any code assigned so it would simply create the sprite and leave it there forever, which is fine for now and doesn't need to be dealt with, but for whatever reason I cannot figure out why this code is not working. Please help!
 
Last edited:
Top