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

#1 2008-06-16 23:16:48

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Double Click

How come when I'm making my games I have to double click the green flag? First it resets almost all the variables, and the second time it resets the boss varaible and hides the boss. Is this a glitch? Can it be fixed?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-06-17 06:06:54

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: Double Click

No.  It is how the script is put togeather.


~ihaveamac - visit ihaveamac.net

Offline

 

#3 2008-06-17 07:01:25

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Double Click

Usually, it means that you should have a Wait inserted somewhere.  What happens a lot of times is the Green Flag is clicked and a lot of variables go to zero and a lot of processes get fired off.  Sometimes the processes fire first, before the variables have had a chance to zero out completely.  If you pay close attention to what processes depend of initial variable conditions and make sure they wait a fraction of a second before starting (to give the variables time to get set), you can usually cure the double click problem.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2008-06-17 08:37:04

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: Double Click

My click the color game works that way, it is just a bug in the scratch program


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#5 2008-06-17 08:39:54

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Double Click

what happens to me is that the variable is zero when you end the game, which is what the game is like when the green flag is clicked. But then my "If variable=0 broadcast end" broadcasts before the variable is not zero.

Offline

 

#6 2008-06-17 12:14:18

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Double Click

I always put the varaible reset first though... and right now it's working. I put in a little intro and it seems completely fine?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#7 2008-06-17 16:10:45

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Double Click

But you put them in seperate scripts. For your broadcast gameover thing just go
=====
when greenf;ag clicked
wait (1) secs
forever
if <var = 0>
======

Offline

 

Board footer