in development mode, you CAN pause the program by clicking on the color in this block: [blocks]<touching color[ [/blocks] or any block with a color picker (or even no color dropdown menu)
Offline
What's interesting is that the smalltalk command
self showInformDialog: 'paused' withText: 'click OK to continue'
when run will cause a popup window to appear on your screen. This pauses everything in the game until it's closed!
(note, the texts 'paused' and 'click OK to continue' can be replaced with anything.)
Offline
sparks wrote:
What's interesting is that the smalltalk command
Code:
self showInformDialog: 'paused' withText: 'click OK to continue'when run will cause a popup window to appear on your screen. This pauses everything in the game until it's closed!
(note, the texts 'paused' and 'click OK to continue' can be replaced with anything.)
Could you add more then just OK? And could they broadcast something after they're clicked?
Offline
SSBBM wrote:
runemoro wrote:
there should be what to do when paused
Oh great idea! Like,
http://img408.imageshack.us/img408/143/runbutifdo.gif
I like it!
Isn't that basically this?
[blocks]<forever>
<if>
<else>
<end>
<end>[/blocks]
EDIT: I hate the forum blocks.
Last edited by TheSuccessor (2010-12-30 14:44:33)
Offline
sparks wrote:
What's interesting is that the smalltalk command
Code:
self showInformDialog: 'paused' withText: 'click OK to continue'when run will cause a popup window to appear on your screen. This pauses everything in the game until it's closed!
(note, the texts 'paused' and 'click OK to continue' can be replaced with anything.)
I think that only works with Panther, for normal Scratch try this:
DialogBoxMorph inform: 'click OK to continue' title: 'paused'
Offline
TheSuccessor wrote:
SSBBM wrote:
runemoro wrote:
there should be what to do when paused
Oh great idea! Like,
http://img408.imageshack.us/img408/143/runbutifdo.gif
I like it!Isn't that basically this?
[blocks]<forever>
<if>
<else>
<end>
<end>[/blocks]
EDIT: I hate the forum blocks.
Why can't people understand that is can NOT easily be done with blocks in 1.4!?!?!
Look at this. Just replace the 'pause' block with a script.
Offline
TheSuccessor wrote:
sparks wrote:
What's interesting is that the smalltalk command
Code:
self showInformDialog: 'paused' withText: 'click OK to continue'when run will cause a popup window to appear on your screen. This pauses everything in the game until it's closed!
(note, the texts 'paused' and 'click OK to continue' can be replaced with anything.)I think that only works with Panther, for normal Scratch try this:
Code:
DialogBoxMorph inform: 'click OK to continue' title: 'paused'
I made it and it works.
try making the block!
blockspec:
('pause' #- #pause)
method:
pause self showInformDialog: 'paused' withText: 'click OK to continue'
Offline
add me to supporters list!
Offline
scimonster wrote:
TheSuccessor wrote:
sparks wrote:
What's interesting is that the smalltalk command
Stuff that I don't understand
when run will cause a popup window to appear on your screen. This pauses everything in the game until it's closed!
(note, the texts 'paused' and 'click OK to continue' can be replaced with anything.)I think that only works with Panther, for normal Scratch try this:
Stuff that I don't understandI made it and it works.
Stuff that I don't understand
I will repeat my question:
SSBBM wrote:
Could you add more then just OK? And could they broadcast something after they're clicked?
If that could happen then you could have a quit button or something.
Offline
SSBBM wrote:
scimonster wrote:
pause would be sort of like wait, but wait only pauses that script but pause will pause all scripts, on all sprites.
[blocks]<wait( 1 )secsc>[/blocks] makes that script wait, pause (1) secs makes everything pause for 1 second
[blocks]<wait until>[/blocks] makes that script wait until the condition is fulfilled, pause until <> pauses everything until the condition is fulfilledYep! Pause would be like
[blocks]<wait until> <not>[/blocks]
Let me refine my idea and make it even better...
For the script that's running it, it acts as a wait, and while it's waiting, it pauses everything else.
And I know this is bumping it, but it is wanted by lots of people.
Last edited by scimonster (2011-01-19 14:32:35)
Offline
SSBBM wrote:
TheSuccessor wrote:
SSBBM wrote:
Oh great idea! Like,
http://img408.imageshack.us/img408/143/runbutifdo.gif
I like it!Isn't that basically this?
[blocks]<forever>
<if>
<else>
<end>
<end>[/blocks]
EDIT: I hate the forum blocks.Why can't people understand that is can NOT easily be done with blocks in 1.4!?!?!
Look at this. Just replace the 'pause' block with a script.
I see your point. Add me to supporters. And can I put this block in my mod?
Offline
What about adapting the 'forever if' + 'repeat until' and add a nice checkbox next to them indicating whether the player should check for the boolean each block or at the beginning and at each iteration of the whole group?
Last edited by LS97 (2011-01-21 16:09:20)
Offline
TheSuccessor wrote:
I see your point. Add me to supporters. And can I put this block in my mod?
Thanks for supporting. I don't mind you adding this to your mod under the conditions that you give me credit for idea and show it to me when your done.
LS97 wrote:
What about adapting the 'forever if' + 'repeat until' and add a nice checkbox next to them indicating whether the player should check for the boolean each block or at the beginning and at each iteration of the whole group?
Thats a great idea! I'll make a mock-up soon.
Offline
A very similar one: http://suggest.scratch.mit.edu/forums/6 … use-button
Last edited by scimonster (2011-01-31 14:56:00)
Offline
<pick random( )or( )
Offline
kristianmischke wrote:
<pick random( )or( )
what is that?
Offline
I agree. This is a very good idea But what section of blocks would this go in?
Offline
probably control
Offline
scimonster wrote:
A very similar one: http://suggest.scratch.mit.edu/forums/6 … use-button
Yes, but that's too easy. It wouldn't allow you to add button, like 'go back to menu'. Although I bet the scratch team will add that, along with other BYOB things. I would like it with an option to turn it off.
kristianmischke wrote:
[block]<pick random( )or( )[/block]
Please don't spam
-iNetMaster- wrote:
I agree. This is a very good idea But what section of blocks would this go in?
Thanks! Scimonster's right, it would go in control.
Offline
harleyk, your signature looks like a lollipop!
Offline
i support
Offline
SSBBM wrote:
LS97 wrote:
What about adapting the 'forever if' + 'repeat until' and add a nice checkbox next to them indicating whether the player should check for the boolean each block or at the beginning and at each iteration of the whole group?
Thats a great idea! I'll make a mock-up soon.
Here it is! Paint messed it up a little, but it's still a good mock-up.
Happypieman wrote:
harleyk, your signature looks like a lollipop!
Please do not do that in the future.
supergarfield wrote:
i support
Thank you!
Last edited by SSBBM (2011-02-06 14:01:13)
Offline
SSBBM wrote:
SSBBM wrote:
LS97 wrote:
What about adapting the 'forever if' + 'repeat until' and add a nice checkbox next to them indicating whether the player should check for the boolean each block or at the beginning and at each iteration of the whole group?
Thats a great idea! I'll make a mock-up soon.
Here it is! Paint messed it up a little, but it's still a good mock-up.
http://img404.imageshack.us/img404/9894/ifbutpause.gif
Thank you!
Wouldn't something like this be better?
(of course, not such a long explanation..)
Offline