So I need to do two things to make this perfect for what I need:
1-How do I keep objects within a set boundary on the screen? I don't want the enemies to appear near the score. I have them bound to the layout but they get behind the score and it gets wonky. Is there a way to box them in below the score?
2-For some reason the enemies are doing something strange. I have it set up where a puff of smoke appears then spawns a ninja which after a 3 second pause spawns a cut sprite of the same ninja and a screen flash causing damage to the player.
If the player hits before this then the ninja is destroyed and added to the score.
Everything works fine as long as you don't kill a ninja as soon as you do every time a new one is generate the screen flashes before they actually cut you. Which is not what I want. I want the pause, to give the player a chance then the cut.
Can anyone see what I'm doing wrong?
Here is the latest: