hey when my game reaches a certain score you win should come up on the screen, that is working, but when your score goes below 0, game over should appear, the problem is it doesnt, what scripts do i need to make it show up. Thanks very much this is for school.
Offline
amcerbu wrote:
^^ Or, you can use
<not<(score) > (0)>>That's equivalent to checking if the score is less than or equal to 0.
If we're going hypothetical then it could be
<not<(score) > (([tan v] of (0)) * ([sin v] of (90)))>>OR
<not <(score) > (([log v] of (10))-(1))>>Overcomplicating is fun.
Last edited by zammer990 (2012-07-09 09:29:48)
Offline
zammer990 wrote:
amcerbu wrote:
^^ Or, you can use
<not<(score) > (0)>>That's equivalent to checking if the score is less than or equal to 0.If we're going hypothetical then it could be
<not<(score) > (([tan v] of (0)) * ([sin v] of (90)))>>OR<not <(score) > (([log v] of (10))-(1))>>Overcomplicating is fun.
Or we could do not(score+e^(pi*i)+1>0).
Offline
amcerbu wrote:
^^ Too bad that Scratch can't represent complex numbers, so your i variable wouldn't work...
My post was actually sort of serious, since !(a < b) is equivalent to a >= b.
Yea, but check with flash blocks, the fewer operator it has to check, the faster it runs, but in this case there wouldn't be much difference
Offline
Make a sprite and name it "Game over"
Make it as large as the game area is.
Use this script.
when gf clicked hide wait until <(score) < (0)> show stop all
Last edited by henley (2012-07-09 15:30:42)
Offline
henley wrote:
Make a sprite and name it "Game over"
Make it as large as the game area is.
Use this script.when gf clicked hide wait until <(score) < (0)> show stop all
A advanced way of doing it is....
when gf clicked forever // it keeps checking if the score is below 0 if <(score) < (0)> show stop all else hide end
Last edited by Randomness_Player (2012-07-09 18:02:05)
Offline
thanks it works nowxxx
Offline