This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-05 19:13:44

kezzlesbd
New Scratcher
Registered: 2013-02-05
Posts: 2

Quit game button

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

 

#2 2013-02-05 19:19:50

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Quit game button

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.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2013-02-07 17:55:59

kezzlesbd
New Scratcher
Registered: 2013-02-05
Posts: 2

Re: Quit game button

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!  smile

Offline

 

#4 2013-02-07 19:16:16

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Quit game button

It's technically Scratch's little brother. And it's not taboo.  smile


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2013-02-07 19:37:35

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Quit game button

It already exists, it's the "Stop All" button.  tongue


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#6 2013-02-08 19:26:01

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Quit game button

I already went over that, technoguyx.  tongue


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#7 2013-02-08 19:38:39

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Quit game button

set [quit v] to [1000]
forever
  change [quit v] by ((quit) * (quit))
end
That should cause Scratch to run out of memory and close.
EDIT: This should work on Windows, but on OS X it will make Scratch freeze and do nothing. I suggest you don't use it online either because it would probably cause Flash Player to freeze, and possibly the whole browser.

Last edited by nathanprocks (2013-02-08 19:45:37)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#8 2013-02-15 07:42:45

lutherwenxu
Scratcher
Registered: 2012-12-12
Posts: 8

Re: Quit game button

This will not works if any computer have many memory.  tongue

set [quit] to (1000)
forever
  change [quit v] by ( (quit) * (quit) )
end
Even this:
This will not works if any computer have many memory.  tongue
set [quit] to (10000000000000000000000000000000000000000000000000000000000000)
forever
  change [quit v] by ( (quit) * (quit) )
end

Offline

 

#9 2013-02-15 23:34:43

lutherwenxu
Scratcher
Registered: 2012-12-12
Posts: 8

Re: Quit game button

set [quit v] to (1000)
forever
  change [quit v] by ( < (quit) * (quit) > )
end

Offline

 

#10 2013-02-16 00:43:49

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Quit game button

I'm pretty sure this topic was resolved within the first or second reply, guys.

I'll report it to be closed.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#11 2013-02-16 01:09:25

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Quit game button

Closing as resolved.


nXIII

Offline

 

Board footer