Hello
I am making a game (((named cannon defense)I know I'm not the only one using that name)It can be changed), where you have a cannon that shoots "bullets" to "enemys". Everytime the bullet hits enemy, the enemy "spawns" in different place.
Now to my questions: How can I make a timer that lets me play for 1 minute, then stops the game and tells me the "points" of how many enemys I killed? And how can I use that game in other websites than this?
Thank you.
Offline
I think this will work:
#1: Put all the game-playing scripts in a "forever if <not<(timer) > 60>> { }" loop.
#2: Add this script (without the forever if I mentioned):
When Green Flag Clicked:
|wait until <(timer) > 60>|
code to say score here
You could use |say (score)|, |show variable {score v}|, etc.
Offline
[blocks]<forever if><< <not> >><( <timer> <>> 60 )>[/blocks] is what you need to add to each scrpt
and this is how to say score:
[blocks]<when green flag clicked><wait until><( <timer> <>> 60 )><say[ <{ score }> [/blocks]
Offline
slammer111 wrote:
[blocks]<forever if><< <not> >><( <timer> <>> 60 )>[/blocks] is what you need to add to each scrpt
and this is how to say score:
[blocks]<when green flag clicked><wait until><( <timer> <>> 60 )><say[ <{ score }> [/blocks]
DISCLAIMER: second code may be a more or less code
Offline