I want that all the scripts of action stop and make the one that makes that if life reaches 0, switch costumes. The problem is that when life reaches 0, if im pressing a button that performs an action, it continues doing it until it games over or i stop pressing it. Can you help me with that? Thank you!
Offline
Make a script that says, when life equals zero, change to whatever costume you were wanting, broadcast end game and wait, stop all. On your other sprites, have a script that says, when I recieve end game, hide. For an example, download the Tanks project in my signature below. It has this type of scripting.
Offline
Instead of using forever blocks use:
repeat untillives=0do whateverdeath actionyou will only need the death action on [b]one script[/b].
K-Jam wrote:
whenclicked
foreveriflife=0broadcastendWhen I recieveendstop allWhenclicked
foreverifmouse-pointer downrepeat untilnot (mouse-pointer down)do action
If you're doing that the broadcast is unnecessary.
whenclicked
foreveriflife=0stop all
Last edited by Splodgey (2012-04-15 06:21:57)
Offline