How do I script to make something happen if there is a certain variable? Like, I need a death screen to appear when the health variable is 0? I need to know Really soon!
Offline
Try making a sprite for the death screen and giving it the below script:
When Flag Clicked
hide
wait until variable = 0
show
Offline
That' what I did. I can't find a variable = thing though.
Offline
[blocks]<when green flag clicked>
<hide>
<wait until> <( <{ variable }> <=> 0 )>
<show>[/blocks]
This is how you do it.
Last edited by mathematics (2010-09-19 09:09:00)
Offline