So i recently made a "Protect the village" game about shooting
down The UFO's before thei destroy the 5 houses in the "village"
but i have some problems...
How can i make the UFO's explode after killed them?
But first of all i need to tell how i coded this (or then you will not be able to help me)
The sprites i made is the
"Gun" the "Gun's ammo"
2 Ufo's
1 Ufo ammo
1 Ground (only used to stop the gun ammo, nothing to really care about)
5 Houses (called House1 sprite1 sprite2 sprite3 sprite4)
Ok, i made a 2 variables...
1 for the Ufo's health and 1 for the Villages health
so everytime the gunammo/theufoammo hits a house/the ufo,
the variable (ufohealth/villagehealth) will remove 1 stats/healthpoint
But is it possible to make something that works like
"When variable (Ufohealth/VillageHealth) is 0)"
- Change to custome "Exploding"
- say "You won the game "
- Stop all scripts"
Please help me ... and if you think i coded this stupid, please do not say "You are a bad coder you should to this "Bla ... bla bla bla"
-kola2
Offline
Well, this is actually possible. I just want to make sure that I get you the best answer, so could I see your UFO scripts?
With regards,
ErnieParke
Offline
ErnieParke wrote:
Well, this is actually possible. I just want to make sure that I get you the best answer, so could I see your UFO scripts?
With regards,
ErnieParke
Ehm ... i am very new here so i don't think i can make it out of that ForumCodebox (or whatever the name is)
but here is the link for the project, you can download it and look at the scripts.
Please do not post it, i don't want that people thinks that i am remixing others work just bcz i don't wanna make my own
Link : http://scratch.mit.edu/projects/kola2/3149400
Offline
kola2 wrote:
ErnieParke wrote:
Well, this is actually possible. I just want to make sure that I get you the best answer, so could I see your UFO scripts?
With regards,
ErnieParkeEhm ... i am very new here so i don't think i can make it out of that ForumCodebox (or whatever the name is)
but here is the link for the project, you can download it and look at the scripts.
Please do not post it, i don't want that people thinks that i am remixing others work just bcz i don't wanna make my own
Link : http://scratch.mit.edu/projects/kola2/3149400
Well, I won't, I promise.
Now one last question before I can begin. Do you want the UFO's to both crash once (Boss Health) reaches 0, or do you want one to crash once it reaches 6 and the other to crash once it reaches 0?
With regards,
ErnieParke
Offline
ErnieParke wrote:
kola2 wrote:
ErnieParke wrote:
Well, this is actually possible. I just want to make sure that I get you the best answer, so could I see your UFO scripts?
With regards,
ErnieParkeEhm ... i am very new here so i don't think i can make it out of that ForumCodebox (or whatever the name is)
but here is the link for the project, you can download it and look at the scripts.
Please do not post it, i don't want that people thinks that i am remixing others work just bcz i don't wanna make my own
Link : http://scratch.mit.edu/projects/kola2/3149400Well, I won't, I promise.
Now one last question before I can begin. Do you want the UFO's to both crash once (Boss Health) reaches 0, or do you want one to crash once it reaches 6 and the other to crash once it reaches 0?
With regards,
ErnieParke
I want both to crash/explode at the when the health reach 0
Thanks for the help :)
Offline
kola2 wrote:
ErnieParke wrote:
kola2 wrote:
Ehm ... i am very new here so i don't think i can make it out of that ForumCodebox (or whatever the name is)
but here is the link for the project, you can download it and look at the scripts.
Please do not post it, i don't want that people thinks that i am remixing others work just bcz i don't wanna make my own
Link : http://scratch.mit.edu/projects/kola2/3149400Well, I won't, I promise.
Now one last question before I can begin. Do you want the UFO's to both crash once (Boss Health) reaches 0, or do you want one to crash once it reaches 6 and the other to crash once it reaches 0?
With regards,
ErnieParkeI want both to crash/explode at the when the health reach 0
Thanks for the help
Well, I haven't even given it yet, though I see what you mean.
Anyway, in your project, you have a script like this:
when gf clicked forever change [color v] effect by (50)
when gf clicked forever change [color v] effect by (50) if <(Boss Health) < (1)> Crashing scripts... end
if <(Boss Health) > (0)> end
Last edited by ErnieParke (2013-03-04 16:34:36)
Offline
kola2 wrote:
Ok it work'd thanks for the help
You're welcome! Also, good luck with your game!
With regards,
ErnieParke
Offline