Does anyone know how to get Scratch (or dare I say it, BYOB?) to close by pressing a button as part of a game? The best I can do at the moment is to stop everything, but a button to end the game would be far more satisfying. Thanks.
Offline
Why "Dare you say" BYOB? And no, not without a glitch or a block used through hacking/source code. Maybe an in-game button that has a black sprite the size of the screen come up and stop everything. That would create the effect that the game is over, but I don't see why you would need a script like that when you could either close Scratch, or press the stop button or use the stop all script.
Offline
Thanks for the help. The request was actually to try to meet a requirement for a project that my class is developing; however, faking it sounds like a brilliant idea - although I might just get them to put up a black stage and hide everything else, then use stop all! No intention of offending re: BYOB - I think it's brilliant - it is just that it's Scratch's big brother, so I wasn't sure if I should mention it!
Offline
That should cause Scratch to run out of memory and close.setquit ▼to1000foreverchangequit ▼byquit*quit
Last edited by nathanprocks (2013-02-08 19:45:37)
Offline
This will not works if any computer have many memory.
Even this:setquitto1000foreverchangequit ▼byquit*quit
setquitto10000000000000000000000000000000000000000000000000000000000000foreverchangequit ▼byquit*quit
Offline
setquit ▼to1000foreverchangequit ▼by< (quit) * (quit) >
Offline