giraffeman210
Member
I am making a shooter game where the enemies move down toward the player until hit or they go off screen. I have some slow enemies that take more hits and I want the normal fast enemies to slow down when they contact them so that they don't go past the slower enemies.
No matter how I seem to do this, when an enemy touches a slow enemy both the faster enemy and the slow enemy stop moving altogether. This makes no sense because there is no code anywhere ever telling the slow enemies to stop moving. Plus I can no longer die by making contact with the enemies when I stop moving. Lastly, the spawning slows down until it stops which may just be enemies getting stuck before becoming visible.
All that to say what is going on? My game barely has any code and already breaks at something this simple! It is very frustrating and was wondering how I can go about getting it fixed. Thanks!
No matter how I seem to do this, when an enemy touches a slow enemy both the faster enemy and the slow enemy stop moving altogether. This makes no sense because there is no code anywhere ever telling the slow enemies to stop moving. Plus I can no longer die by making contact with the enemies when I stop moving. Lastly, the spawning slows down until it stops which may just be enemies getting stuck before becoming visible.
All that to say what is going on? My game barely has any code and already breaks at something this simple! It is very frustrating and was wondering how I can go about getting it fixed. Thanks!