Hey guys, my game spawns enemies at random from the edges of the screen and directs them towards the player character, when the enemies leave the screen they are destroyed and new enemies are created at random from a family of enemies. I'm trying to slow the family of enemies with varying speeds by a percentage when I call a function.
Here's how i'm spawning enemies:
Enemy family settings:
Function call to apply the speed change to their instance variable speed:
This is not currently working, I'm having some difficulty figuring this out. Any help is greatly appreciated.