lets say u have a fighting game and u wana see how many guys you can kill befor u get killed, so how can i make it count how long i survive and how many guys i get?
Offline
Variables.
[blocks]<when green flag clicked>[/blocks]
[blocks]<set{ Time }to( 0[/blocks]
[blocks]<repeat until><( <{ Kills <>> 10 )>[/blocks]
[blocks]<wait( 1 )secsc>[/blocks]
[blocks]<change{ Timer }by( 1[/blocks]
[blocks]<end>[/blocks]
[blocks]<stop script>[/blocks]
And maybe the Kills variable (on enemy scripts):
[blocks]<when green flag clicked>[/blocks]
[blocks]<set{ Kills }to( 0[/blocks]
[blocks]<forever>[/blocks]
[blocks]<if><touching[ Hero[/blocks]
[blocks]<change{ kills }by( 1[/blocks]
[blocks]<hide>[/blocks]
[blocks]<end>[/blocks]
Offline