Dreaming_developer
Member
Hi everyone,
I've got a separate hitbox I created for enemy headshots, and it's currently only sticking to one of my duplicate enemy objects, or is only being created once for one enemy, even if there are multiple enemy objects in a room.
Code below:
OBJ_enemy Create Event:
instance_create_layer(x,y,"Instances",o_HitBox);
Hitbox Step Event:
x=o_enemy.x
y=o_enemy.y
For whatever reason the hitbox sticks to the first enemy correctly, and only jumps to the second enemy after I've destroyed the first one. Any suggestions are greatly appreciated!
I've got a separate hitbox I created for enemy headshots, and it's currently only sticking to one of my duplicate enemy objects, or is only being created once for one enemy, even if there are multiple enemy objects in a room.
Code below:
OBJ_enemy Create Event:
instance_create_layer(x,y,"Instances",o_HitBox);
Hitbox Step Event:
x=o_enemy.x
y=o_enemy.y
For whatever reason the hitbox sticks to the first enemy correctly, and only jumps to the second enemy after I've destroyed the first one. Any suggestions are greatly appreciated!