I'm working on my first game, and I have everything but the variables down. When an enemy hits your base, the health won't go down! I said "When I receive "Battlefield" (the start of the game), Wait until touching "Friendly Base", Broadcast "Pongstan On Base"." At the base, it says "When I receive "Pongstan On Base," Change "Health" by -8." Any suggestions to make it work?
Offline
Ahh, you forgot to put the health variable at the total number, like <100> at the spite that receives the command. In other words, when green flag clicked, set health to the number, when receive Pongstan On base, change health by -8. There you go. Hope this helps, and good luck! Also, try uploading what you have right now, so others could look at the scripts more easier to see what's going wrong.
Offline
What I do is like When Flag Clicked Forever If Touching Enemy Broadcast I'm Hit Wait Until Not Touching Enemy (That way it doesn't keep broadcasting and I won't lose too much health) When I recieve I'm Hit Change Health by ______ Stop Script
Offline
MisterScratch wrote:
What I do is like When Flag Clicked Forever If Touching Enemy Broadcast I'm Hit Wait Until Not Touching Enemy (That way it doesn't keep broadcasting and I won't lose too much health) When I recieve I'm Hit Change Health by ______ Stop Script
That could work, too, but sometimes when i use it, the script glitches. So, I don't utilize the <forever> part in the script. Well, that's how I program.
Offline
Thank you so much! I got it to work! Now I'm just working on the gameplay component of the game. This will be my first game, so keep an eye out for it.
Offline
The game is now online!
Offline
WingsGames wrote:
The game is now online!
Not anymore, unfortuneatley. The game is totally messed up online. Does anyone know how to fix this?
Offline
WingsGames wrote:
Thank you so much! I got it to work! Now I'm just working on the gameplay component of the game. This will be my first game, so keep an eye out for it.
You're welcome!
Offline
WingsGames wrote:
WingsGames wrote:
The game is now online!
Not anymore, unfortuneatley. The game is totally messed up online. Does anyone know how to fix this?
Hmmm, post it up the game online, so I can check out what's wrong. And, try uploading the project when you stopped the project at the screen of the variables in it.
Offline
WingsGames wrote:
WingsGames wrote:
The game is now online!
Not anymore, unfortuneatley. The game is totally messed up online. Does anyone know how to fix this?
Some of my games have little quirks wrong with them too. Like in Shoot 'Em Up the first target gives you 2 points instead of one. Also in Moon Defense some of the bullets don't stop when they hit Aliens. Another is in Snake - Super Mario Bros. Style if you play it in flash the pen is too thin and you'll go through it. Generally what I do is I put in the description a part telling people to download the game for it work best. Hope this helps.
Offline
Here's the link so you can check the game out: http://scratch.mit.edu/projects/WingsGames/1617433
Offline