Hi
I'm super new to Scratch, and after a couple of days, I made this so far. However, I notice that most of my bullets tend to pass harmlessly through the enemy ship. The bullets that DO hit work correctly, as the ship's HP goes down accordingly.
I registered all 6 of my bullets to subtract 1 HP from enemy's hp variable, but it isn't working as I want it. I want all my bullets to hit the enemy, as each bullet as make the ship change to the Damaged costume.
I added lots of comments on the coding, so I hope someone can offer a solution or spot my problem
http://scratch.mit.edu/projects/tchan5158/1309630
(and for some reason my ship is a bit crooked if u run it online. O_o;)
Offline
Ah, I see your problem. This is the script that checks if the enemy ship should be hurt:
The Forever if block is restricted to one condition - for more, you should take a Forever block and stack If blocks in it. Here's the fixed script:
Any questions?
Offline
OOOOhhh thank you thank you thank you!
Yesh it working now! I must add your name to my Credits and Special Thanks list
Jonathanpb wrote:
Ah, I see your problem. This is the script that checks if the enemy ship should be hurt:
The Forever if block is restricted to one condition - for more, you should take a Forever block and stack If blocks in it. Here's the fixed script:
Any questions?
Offline