I'm making a 2player battle game (The Ep1c Battle) it will be my first proper game ive posted. my other games are trials when i need someone to help me with problems. anyway in this game your player has 35/or more lives. i want it to be so when one player gets to 0 lives it says "red losess" or something is there a varible block like that plz plz plz help me. Lives go down when 1 player uses attack. its a variable and im done eerything else so all i need is that plz plz plz help me
thanks
dk233
Offline
Well, when it gets attacked, change it's lives variable by -1. When the variable = 0, do what you want.
Offline
Guys i already got it that they got hit it goes by one the thing i need to do was
http://scratch.mit.edu/forums/viewtopic.php?id=72889#req_message
lives =0
http://scratch.mit.edu/forums/viewtopic.php?id=72889#req_message http://scratch.mit.edu/forums/viewtopic.php?id=72889#req_message
but i got it after i posted thanks to you all i posted the game last night plz go check it out
The Ep1c Batte
http://scratch.mit.edu/projects/dk233/1997483
Offline
dk233 wrote:
I'm making a 2player battle game (The Ep1c Battle) it will be my first proper game ive posted. my other games are trials when i need someone to help me with problems. anyway in this game your player has 35/or more lives. i want it to be so when one player gets to 0 lives it says "red losess" or something is there a varible block like that plz plz plz help me. Lives go down when 1 player uses attack. its a variable and im done eerything else so all i need is that plz plz plz help me
thanks
dk233
You could use the following scripting in the players
[blocks]<if><( players live <=>0 )>[/blocks]
[blocks]<broadcast[ red loses [/blocks]
[blocks]<end>[/blocks]
Then to make it so 2 people can't lose you could put in this scripting
[blocks]<if><<reds live=0 <and>not dead=1 >>[/blocks]
[blocks]<broadcast[ red loses [/blocks]
[blocks]<set{ dead }to( 1 [/blocks]
[blocks]<end>[/blocks]
Hope I helped
Offline