Discuss Scratch

dkaufer
New to Scratch
3 posts

I'm making a game with lives, but when the lives run out it is supposed to go to the first background but it wont any help

I'm making a game with lives, but when the lives run out it is supposed to go to the first background but it wont any help
drmcw
Scratcher
1000+ posts

I'm making a game with lives, but when the lives run out it is supposed to go to the first background but it wont any help

Is this the amazing ghostball? Can't see where it will do that but you do have a forever blocks containing if touching green then next backdrop which will likely ruin any backdrop changes you want to make.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
StarscreamClone
Scratcher
1000+ posts

I'm making a game with lives, but when the lives run out it is supposed to go to the first background but it wont any help

Well, one way to do so is to have a broadcast like this in backgrounds:
when green flag clicked
forever

if <(lives) = [0]> then

switch backdrop to [the background you want v]
end
end
I may be off (I don't do games too often), so if it doesn't work, come back and I'll see if I can figure it out.

Last edited by StarscreamClone (Dec. 17, 2013 21:48:02)


Opportunistic Starscream is opportunistic.
Thawk11
Scratcher
9 posts

I'm making a game with lives, but when the lives run out it is supposed to go to the first background but it wont any help

You could do this.
nd
if <Lives=0> then
broadcast [broadcast v]

when I receive [broadcast v]
switch backdrop to [stage v]
end

Powered by DjangoBB

Standard | Mobile