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
set [quit v] to [1000] forever change [quit v] by ((quit) * (quit)) endThat should cause Scratch to run out of memory and close.
Last edited by nathanprocks (2013-02-08 19:45:37)
Offline
This will not works if any computer have many memory.
set [quit] to (1000) forever change [quit v] by ( (quit) * (quit) ) endEven this:
set [quit] to (10000000000000000000000000000000000000000000000000000000000000) forever change [quit v] by ( (quit) * (quit) ) end
Offline
set [quit v] to (1000) forever change [quit v] by ( < (quit) * (quit) > ) end
Offline