Hello. My name is BlueNeonStreak, and I'm making a two-player racing game. I need a script that will accurately count how many laps each player completes. If you have any useful information, please post it in this thread. Thank you!
Offline
when gf clicked set [laps v] to (0) forever wait until <touching [#00FF00]?> wait until <not <touching [#00FF00]?>> change [laps v] by (1)So when the sprite touches something Green then goes off of it, it will changes the variable "laps" by one. So you can have the finish line be green and it should work.
Offline
when gf clicked forever if <touching color [#FAFF00] ?> change [laps v] by [1] wait until <not <touching color [#FAFF00] ?>> end
Last edited by PencilFactory (2012-02-20 12:25:01)
Offline
PencilFactory wrote:
[scratchblocks]
when gf clicked
forever if <touching color [#FAFF00]>
change [laps v] by [1]
wait until <not <touching color [#FAFF00]>>
end
You need a [ /scratchblocks] tag at the end. I put a space in there, becuase last time I didn't, it really messed things up. So put that tag at the end without the space, and it will show up properly.
Offline