Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

stopRunning

stopRunning()

When called this will stop the game from running. There are some occasions, whilst debugging your game, where this is useful to call. Otherwise there is no real need to ever use this function.

// stops running if the left mouse button is clicked
onEachFrame() do
    if getControls().isLeftClick()
        stopRunning()
    end
end