P
Prandini
Guest
I try to do a functional spawn of enemies using a timer, everything works, however, a bug happens where the sprite of my player and the enemy appears continuously, even if I didn't put this in the code
GML:
var enemy = instance_create_depth(irandom_range(48,442), 0, 1, obj_enemy);
enemy.sprite_index = choose(spr_enemy, spr_enemy1);
alarm[0] = 60*4;
Attachments
-
8.7 KB Views: 5
Last edited by a moderator: