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

#1 2012-12-28 13:10:56

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Flash bug.

OS: Windows 7.
Browser: Chrome (version 23.0.1271.97).
Flash version: 11.5.31.5.
Project: http://scratch.mit.edu/projects/30-1/3007654
Description: Delay does not work in the flash player. This is not a scripting error, it works on both the java player and offline.  http://scratch.mit.edu/forums/img/smilies/hmm.png


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#2 2012-12-28 13:16:27

Snowdrift
Scratcher
Registered: 2011-06-22
Posts: 500+

Offline

 

#3 2012-12-28 13:22:59

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Flash bug.

I'm not using change costume, I'm using:

when gf clicked
set [delay v] to [2]
forever
 next background
 repeat (delay)
  if <key [space v] pressed?>
   ask [Set delay] and wait
   set [delay v] to (answer)
   end
   end
Works offline and in java.  hmm


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#4 2012-12-28 14:03:40

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Flash bug.

30-1 wrote:

I'm not using change costume, I'm using:

when gf clicked
set [delay v] to [2]
forever
 next background
 repeat (delay)
  if <key [space v] pressed?>
   ask [Set delay] and wait
   set [delay v] to (answer)
   end
   end
Works offline and in java.  hmm

at least click through to the link, please?  the link describes a bug with changing backgrounds to a certain number, which is exactly what the next background block does; it simply changes the background to the current background +1


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#5 2012-12-28 14:15:41

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Flash bug.

SJRCS_011 wrote:

30-1 wrote:

I'm not using change costume, I'm using:

when gf clicked
set [delay v] to [2]
forever
 next background
 repeat (delay)
  if <key [space v] pressed?>
   ask [Set delay] and wait
   set [delay v] to (answer)
   end
   end
Works offline and in java.  hmm

at least click through to the link, please?  the link describes a bug with changing backgrounds to a certain number, which is exactly what the next background block does; it simply changes the background to the current background +1

This is not the bug.
The bug is the repeat block should slow down the script.  mad


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#6 2012-12-28 17:19:36

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Flash bug.

bump


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#7 2012-12-28 18:45:55

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Flash bug.

Then just ask people to download  tongue


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#8 2012-12-28 19:30:57

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Flash bug.

30-1 wrote:

SJRCS_011 wrote:

30-1 wrote:

I'm not using change costume, I'm using:

when gf clicked
set [delay v] to [2]
forever
 next background
 repeat (delay)
  if <key [space v] pressed?>
   ask [Set delay] and wait
   set [delay v] to (answer)
   end
   end
Works offline and in java.  hmm

at least click through to the link, please?  the link describes a bug with changing backgrounds to a certain number, which is exactly what the next background block does; it simply changes the background to the current background +1

This is not the bug.
The bug is the repeat block should slow down the script.  mad

There's no bug here, the script works fine in the Flash player. Your "bug" is due to the fact the Flash player has a tendency to execute scripts at a faster rate than the Java player or offline. As a result, you won't see an effective delay unless you put in a ridiculously high number (I only see an effective delay at around 20,000+ on my computer).

Last edited by cheddargirl (2012-12-28 19:42:08)


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#9 2012-12-29 07:01:36

30-1
Scratcher
Registered: 2012-08-08
Posts: 100+

Re: Flash bug.

Thanks.


http://i.imgur.com/ocOya7x.gif
I. Text I Based I Games I

Offline

 

#10 2012-12-29 09:32:51

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

Re: Flash bug.

Closed by request of the topic owner.


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

Offline

 

Board footer