Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Multiple health points.
- AmazonJosh
-
23 posts
Multiple health points.
I'm making a game similar to galaga and I need my boss to dissappear after 210 hits, but my script isn't working.
- When I receive Level 2
Wait until (variable) Boss Health = 0
Hide
Anybody know how to fix it? I'm also having trouble for the bullet touching the sprite for a second and then counting only one hit rather than counting 3 or 4 hits (Sorry, can't really word this very well).
- mathfreak231
-
1000+ posts
Multiple health points.
I created your scripts in my I'm making a game similar to galaga and I need my boss to dissappear after 210 hits, but my script isn't working.[Script Sandbox. I think the problem is that the hits do more than one damage, making the health go under 0 sometimes. I waited until it's not more than than 0 (which means it must be less than or equal to). For the bullets hitting the enemies, the problem is that it senses more than once at a time, so the additional wait makes sure it only senses one at a time.
When I receive Level 2
Wait until (variable) Boss Health = 0
Hide
Anybody know how to fix it? I'm also having trouble for the bullet touching the sprite for a second and then counting only one hit rather than counting 3 or 4 hits (Sorry, can't really word this very well).
Scratch on!
Last edited by mathfreak231 (July 7, 2013 12:56:07)
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- AmazonJosh
-
23 posts
Multiple health points.
Thx for the tip.
Last edited by AmazonJosh (July 7, 2013 19:54:39)
- Discussion Forums
- » Help with Scripts
-
» Multiple health points.