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

#1 2012-06-05 13:47:40

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Click-pause glitch

On my reverse glitch game ( i was bored) I made a script so that it clicks to unpause/pause.  It can pause, but it can't unpause.  Any help?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2012-06-05 14:22:27

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Click-pause glitch

In all running scripts, do this,

when gf clicked
forever
all stuff in this script
if <(pause) = [yes]>
wait until <(pause) = [no]>
end
and then a script to change the variable.


Why are the secret organizations getting all the attention?  mad

Offline

 

#3 2012-06-05 14:24:40

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Click-pause glitch

sonicfan12p wrote:

In all running scripts, do this,

when gf clicked
forever
all stuff in this script
if <(pause) = [yes]>
wait until <(pause) = [no]>
end
and then a script to change the variable.

I'm talking about the script to change the variable.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2012-06-05 14:31:46

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Click-pause glitch

Oh! Why didn't you say so! Then do this,

when [pause button] clicked
set [pause v] to [yes]
wait until <<touching [mouse-pointer v]?> and <mouse down?>>
set [pause v] to [no]
Here you go!

Last edited by sonicfan12p (2012-06-05 14:32:43)


Why are the secret organizations getting all the attention?  mad

Offline

 

#5 2012-06-05 14:33:01

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Click-pause glitch

Do this:

when gf clicked
forever
 wait until <mouse down?>
 if <(paused?) = [true]>
  set [paused? v] to [false]
 else
  set [paused v] to [true]
 end
 wait until <not <mouse down?>>
end

Last edited by SciTecCf (2012-06-05 14:33:22)


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

#6 2012-06-05 14:35:42

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Click-pause glitch

Ok.  Thanks.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer