Create a variable each for score and lives, and increase them when you need to.
Offline
Make something like
When greenflag clicked
Set score to 0
Set time to either 0 or for a countdown 20 or whatever
Forever
If <don't catch anything>
Change score by -1
Wait until <don't catch anything>
EndIf
When greenflag clicked
Forever
Wait 1 sec
Change time by -1 (or +1 depending on if you want it countdown or count-up)
Offline
I did what you said but my life only goes down after a few hits and my score will only go up a few catches what am i doing wrong
this is what i did
When i recieve START GAME
set score to 0
forever
if touching food or food 1
change score by 2
wait until touching food or food 1
end if
end forever
Offline
Maybe something wrong with my "wait until" script? Ask someone ... more advanced
Offline
shera wrote:
I did what you said but my life only goes down after a few hits and my score will only go up a few catches what am i doing wrong
this is what i did
When i recieve START GAME
set score to 0
forever
if touching food or food 1
change score by 2
wait until touching food or food 1
end if
end forever
Try taking out the wait until block. I'm having a little trouble visualising this, so my answer may be wrong.
Offline
Doesn't matter
Offline
2l84zwamani wrote:
Make something like
When greenflag clicked
Set score to 0
Set time to either 0 or for a countdown 20 or whatever
Forever
If <don't catch anything>
Change score by -1
Wait until <don't catch anything>
EndIf
When greenflag clicked
Forever
Wait 1 sec
Change time by -1 (or +1 depending on if you want it countdown or count-up)
That's what I do.
Offline
shera wrote:
http://scratch.mit.edu/projects/shera/1384540
here the link
Well, I looked at it. I have two questions.
1. What is wrong with it?
2. What's the point?
And here's another issue. The game is inappropriate. Quite a lot of alcohol references.
Offline
the issue with it is
1. it doesn't keep score. sometimes the score will jump to 40 while other times it doesn't go up
2. the life won't go down when hit.
the point of the game is to feed homer without feeding him his family.
I'll delete the game and just censore it and then upload it back.
any help would be appreciated
Offline
shera wrote:
the issue with it is
1. it doesn't keep score. sometimes the score will jump to 40 while other times it doesn't go up
2. the life won't go down when hit.
the point of the game is to feed homer without feeding him his family.
I'll delete the game and just censore it and then upload it back.
any help would be appreciated
I was about to look again but you deleted it. Tell me when you re-upload.
Offline
Click here. This ought to do it. There's still alcohol, though. It's in the instructions, when it talks about drinking and in the images you see when you win. If it didn't work, pray tell. Please give credit if it does.
Offline
put set lives or score to zero. say red is where you lose a life. then put if touching collor red change lives or score by -1 or if its score by1. then put wait until touching color red if thats the thing that you lose a live with or green if thats the thing that makes the score go up.
look at my project Quidditch r the score except that goes u by ten and you can always change it
b winkysquirt
Offline
when i said say red is where you lose a life i didnt me put that as a script
Offline