I’ve randomly generated 8 enemies, but only 1 is moving and I’m not sure why.
also, there is a random sprite for my fireball projectile in the upper left corner and I don’t know how it got there.
I’ve randomly generated 8 enemies, but only 1 is moving and I’m not sure why.
also, there is a random sprite for my fireball projectile in the upper left corner and I don’t know how it got there.
You’re using the myEnemy
variable in your for-loop, which only points to the last created bug. Try dragging out the value
variable from the for-loop instead
thanks! That fixed it. any ideas about that random fireball sprite sitting in the corner?
@G-type what’s the fireball supposed to do? Also, can you share your code? Here’s a gif showing how to do it: