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

#1 2008-08-18 09:40:32

Hobbs1100
Scratcher
Registered: 2008-02-16
Posts: 500+

Serious Lag and Online Glitches

Urgghhh!!!! I'm sick of projects lagging online, forcing people to download the project to view it. In PixBites 2.0, I used a lot of "When green flag clicked" "Forever if" scripts, so i can see why that lagged a bit, but it only lagged Online. Presentation mode runs perfectly, but online, it doesn't work.

Also, why do projects work differently online than in presentation mode? I may be able to doing something in edit mode and/or presentation mode, but that script doesn't work online.

In 1.3, you really need to fix this... or fix something now!

Offline

 

#2 2008-08-19 10:27:46

jasb
Scratcher
Registered: 2007-11-10
Posts: 100+

Re: Serious Lag and Online Glitches

Yeah Hobbs is right. I've got the same problem.

Offline

 

#3 2008-08-20 10:44:30

Hobbs1100
Scratcher
Registered: 2008-02-16
Posts: 500+

Re: Serious Lag and Online Glitches

bump

Offline

 

#4 2008-08-20 17:14:33

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

Re: Serious Lag and Online Glitches

Hobbs1100 wrote:

bump

If you're looking for an explanation of why things work differently on the web...I'll take a whack at it.  On the web, your project is running in a piece of code written in Java that interprets the Scratch project and runs it.  When you run it downloaded, you are running in the Scratch integrated design environment (IDE) which is written in Squeak.  So, because of differences in the two players (Java and Scratch), you can get differences in the timing of events as the project runs.  So if you have a bunch of things set up to run on Green Flag you might get one sequence of events in one player and another in the other player.  This can cause problems if one of the events depends on the other event running first (such as variable initialization).  You can often cure online problems by thinking hard about what really needs to happen in what order and making sure that it really happens in that order by using short WAITs or broadcast messages.

Of course, there are other differences between the players that you just have to work around.  Such as the maximum sprite size (no bigger than the screen, online) and the fact that "When Clicked" works differently (I usually use Mouse Down and Touching Mouse instead). 

I don't know if there are going to be significant changes to the Java Player with the 1.3 release.  We can hope that some of these issues go away...but I'm pretty sure that there will always be differences as long as there are two separate players. 

In the programming industry, it's pretty common to maintain a program on multiple platforms with the same set of source code (which is pretty much what's going on here with the Scratch and Java platforms).  You are actually getting some good experience with the sort of problems that can occur when you try and do that.   So...if you're looking for a silver lining - there it is!  That having been said, I do hope some of the issues are cleared up.


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

Offline

 

#5 2008-08-20 17:19:03

Heybrian-
Scratcher
Registered: 2008-04-30
Posts: 100+

Re: Serious Lag and Online Glitches

Hobbs1100 wrote:

Also, why do projects work differently online than in presentation mode? I may be able to doing something in edit mode and/or presentation mode, but that script doesn't work online.

Because online, online has connection. You have to have good connection to do something. Offline, or local, you dont have to connect, becuase you have the thing right there on the computer, withought having to connect. The internet will have to have really good connection or just a supercomputer to support a game with as good connection as local.


www.bungie.net . Halo 3. World Domination.

Offline

 

Board footer