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

#1 2008-12-21 12:50:01

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Scripting Bug?

I think there is a bug on the script of this project: http://scratch.mit.edu/projects/Dan01/358649

When there is no buttons pressed, Mario is going through a series of idle costumes which "should be" 0.05 seconds apart. When the person goes to press the up button, Mario should straight away switch to the jump costumes, as the time between is a maximum of 0.05 seconds. However, it takes atleast 0.5 seconds for the costume switch.

Is this a bug or a problem in my scripting?


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#2 2008-12-21 14:27:49

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Scripting Bug?

I had the same problem. Although the stance is different the repeat loop still has to run which is what is causing your lag. Yeah, block lag sucks.  tongue


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-12-21 14:31:17

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Scripting Bug?

archmage wrote:

I had the same problem. Although the stance is different the repeat loop still has to run which is what is causing your lag. Yeah, block lag sucks.  tongue

Lol. How did you get round it, coz ures seem to work well.


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#4 2008-12-21 14:33:44

theUnderscene
Scratcher
Registered: 2008-10-29
Posts: 64

Re: Scripting Bug?

Here: http://scratch.mit.edu/projects/theUnderscene/358813
I just separated the script that was lagging in to two scripts.


http://www.signaturebar.com/uploads/images/52649.png

Offline

 

#5 2008-12-21 14:34:52

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Scripting Bug?

Dan01 wrote:

archmage wrote:

I had the same problem. Although the stance is different the repeat loop still has to run which is what is causing your lag. Yeah, block lag sucks.  tongue

Lol. How did you get round it, coz ures seem to work well.

I got rid of some of the animations. Mine used to have a double jump animation and the standing animation messed things up. Yours is a different animation which is probably longer. Just try getting rid of the long animations and see how that works out.

First take out the standing animation.

Last edited by archmage (2008-12-21 14:36:13)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#6 2008-12-22 15:41:15

ferret10
Scratcher
Registered: 2008-04-21
Posts: 58

Re: Scripting Bug?

archmage wrote:

I had the same problem. Although the stance is different the repeat loop still has to run which is what is causing your lag. Yeah, block lag sucks.  tongue

I had that problem too.  I think it was just a sprite overload on mine.  Any way around that?


A must-see animation about the Scratch cat! http://scratch.mit.edu/projects/ferret10/364723 ¡uʍopǝpısdn ǝdʎʇ uɐɔ ı

Offline

 

Board footer