Hey all! I'm trying to create a simple space invaders game and I've run into some issues. Only one enemy sprite follows the "looping path" I created. Here's a gif and the code.
Essentially, the bullet speed/angle changes when the enemy collides with a trigger sprite. A form of this code already works with two waves of enemies but not it's not working here. I know it has something to do with "picking" objects and object instances. This is a topic I've always had some difficulty grasping. Could anyone help me out?
One more thing, I'm having trouble muting sound fx and music individually. I can mute it all at once but I'd like to give players to option to mute sfx, the music or both. I found a tutorial using WebStorage to key sfx and toggle them on/off but couldn't get it to work. Music plays at start of layout and then this.
I'd appreciate any advice and thanks for looking! Hope it all makes sense!