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

#1 2008-08-06 04:51:54

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

online glitch?

I resently made a large project called JetDog. however as soon as it was uploaded, it didint work as i wrote it, you need to restart the browser to retry, some of the sprites dont hide when they are supose to and more problems like theese, however it works fine when downloaded. I have no idea what could cuse this other then the actual size of the project as well as the way it was writen.

Offline

 

#2 2008-08-06 06:18:55

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

Re: online glitch?

Could have sworn I saw this same post yesterday...you can just add a new post to the thread to "bump" it back up to the top, rather than making a whole new post.

Usually, the reason that projects act differently on the web has to do with the timing of things.  You may have several scripts all starting on a given Broadcast event (for instance) that really need to act in a certain order.  They work fine in Scratch but, because some events happen a little faster or slower online, they don't work right online.  You can usually cure these kind of problems by adding short Wait blocks ahead of the events that should happen later.

Also, make sure that when the Green Flag is clicked, the project is initializing properly.  That means that all the variables are set to the right starting values, all the sprites are put in the right starting place and so on.  Any Forever loops that are checking for a certain variable value should have a short Wait ahead of them to make sure that the variable has time to get set to the right starting value before the Forever loop starts checking it.


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

Offline

 

#3 2008-08-06 09:23:58

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: online glitch?

Sorry, wasint sure if I actually posted it yesterday, had internet problems.

Thanks, I'll go over my scripts making all these adjustments.

Offline

 

#4 2008-08-11 11:58:20

guy77
Scratcher
Registered: 2008-07-07
Posts: 4

Re: online glitch?

I have found differences with on-line projects

Off-line you can use two variables named 'name' and 'Name', but on-line these will not work, a capital letter doesn't mean a different variable

Also x y positioning can be different by 1 pixel. Try my Ghosts2. Off-line it works, but on-line the ghosts eventually disappear....

Offline

 

#5 2008-08-11 18:56:31

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

Re: online glitch?

guy77 wrote:

I have found differences with on-line projects

Off-line you can use two variables named 'name' and 'Name', but on-line these will not work, a capital letter doesn't mean a different variable

Also x y positioning can be different by 1 pixel. Try my Ghosts2. Off-line it works, but on-line the ghosts eventually disappear....

Those are some good observations!  I've run into the 1 pixel difference problem myself but the variable name issue was new to me. 

A couple of other differences: 

1. The "When Clicked" event works differently online versus off.  In one place, it triggers on Mouse Down, in the other it triggers on Mouse Up.  I can't recall which is which.

2. Some color sensing acts differently due to differences in the color pallets...1tchy did a project on that a while back.

3. The Say block will show different numbers of decimal points when used to display variables.  Offline, it shows maybe two places to the right of the decimal.  Online, it shows many more.


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

Offline

 

#6 2008-08-11 19:29:27

B2A
Scratcher
Registered: 2008-06-15
Posts: 23

Re: online glitch?

Paddle2See wrote:

guy77 wrote:

I have found differences with on-line projects

Off-line you can use two variables named 'name' and 'Name', but on-line these will not work, a capital letter doesn't mean a different variable

Also x y positioning can be different by 1 pixel. Try my Ghosts2. Off-line it works, but on-line the ghosts eventually disappear....

Those are some good observations!  I've run into the 1 pixel difference problem myself but the variable name issue was new to me. 

A couple of other differences: 

1. The "When Clicked" event works differently online versus off.  In one place, it triggers on Mouse Down, in the other it triggers on Mouse Up.  I can't recall which is which.

2. Some color sensing acts differently due to differences in the color pallets...1tchy did a project on that a while back.

3. The Say block will show different numbers of decimal points when used to display variables.  Offline, it shows maybe two places to the right of the decimal.  Online, it shows many more.

Wow! Thanks Paddle2See for the tip!

Offline

 

Board footer