Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need some help killing sprites
- MrR0g3rs
-
9 posts
Need some help killing sprites
Hello Everyone. My first game is coming along nicely thanks to the community here. So the dragons fly toward the plane. The plane has two weapons, a bullet and a missile. I want the bullet to do 1 damage and the missile to do 2. The dragon is supposed to die after 2 damage. Couple of issues. If I hold down space and blast the dragon it will change its costume to the receiving damage costume but does not disappear until the space bar is released. I would like it to disappear as soon as it takes 2 damage. The same thing is happening with the missile. Also, when I fire the missile I cannot move the plane until the missile has completed its animation. Thanks in advance for any assistance.
https://scratch.mit.edu/projects/94310026/
https://scratch.mit.edu/projects/94310026/
- BKFighter
-
1000+ posts
Need some help killing sprites
Move the missile broadcast detection/if z key pressed into its own loop in the missile sprite (or at least in its own loop).
- Discussion Forums
- » Help with Scripts
-
» Need some help killing sprites