Pages: 1
Topic closed
I want to do 5 levels (I got that bit), but after the 5th level I want a game over sign to appear, but it always does it at the beggining? Help please!!
Offline
Yes it is. The scripts for it are:
when I recieve change background switch to level complete wait 5 secs switch to school<<That is for the stage.
when gf clicked if <(level) = 1> glide 5 secs to x... y... glide 5 secs to x... y... end if <(level)=2>it keeps going like this up to level 6
Offline
They shouldn't be red!
Offline
Frankie101 wrote:
Yes it is. The scripts for it are:
when I receive [change background v] switch to background [level complete v] wait (5) secs switch to background [school v]<<That is for the stage.
The thing that broadcasts the 'end' iswhen gf clicked if <(level) = [1]> glide (5) secs to x: () y: () glide (5) secs to x: () y: () end if <(level) = [2]> Same as aboveit keeps going like this up to level 6
at the end it goes:
broadcast end
Scripts fixed.
Last edited by jontmy00 (2012-07-01 10:34:37)
Offline
Add this:
when gf clicked forever if <(level) > [5]> show switch to background [game over v] else hide end
Last edited by jontmy00 (2012-07-01 10:37:41)
Offline
@zammer990 I have already done that
Offline
It still doesn't work
Offline
jontmy00 wrote:
Add this:
when I receive [end v] if <(level) > [5]> show switch to background [game over v] else hide end
I think it should work now...
Offline
As I am selected on stage sprite, it doesn't have the show and hide buttons
Offline
Here's a simple script that does what you want, it'll change to gave over when level is higher than 5
when gf clicked switch to background [first level / intro v] set [level v] to (1) wait until <(level) > (5)> switch to background [game over v]
Offline
Thankyou both so much!!!
Offline
Topic closed
Pages: 1