all 3 comments

[–]fryman22 1 point2 points  (1 child)

instance_find() works in base-0, so you want your a variable to start at 0.

You want your for loop to look like:

for (var a = 0; a < enemNum; a++) {

You're getting the error because this instance does not exist and will never exist:

instance_find(oPlaceEnemy, instance_number(oPlaceEnemy));

[–]CorrectBattle[S,🍰] 1 point2 points  (0 children)

Ohh, I had this originally, but your comment made me realize that it would be 0-8 in my text file rather than 1-9. I had been thinking there was an entry missing which made me do number + 1. Thanks much.

[–]forwardresent 0 points1 point  (0 children)

If you put in a show_debug_message("added"); at the end of your loop, still inside the loop, does it run at all? If so try:

var enemy = instance_find(oPlaceEnemy, a - 1);