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

#1 2010-06-07 08:52:42

dpant
Scratcher
Registered: 2010-06-07
Posts: 4

Sharing problem

Hello,

I've just shared my Scratch project but something is wrong. the project implements the famous Space Invaders game and contains eight sprites that move around the screen. When the project is loaded in the web page only two of the sprites are shown while the rest are barely visible somewhere in the middle of the screen. This spoils the whole game, of course.

This only happens in the online version of the project. When downloaded, the project works fine (locally).

Any explanation?

Is this some kind of the website's policy?

Thank you very much in advance,
Dimitris

Offline

 

#2 2010-06-07 08:54:30

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Sharing problem

Hmm... You should read Paddle2See's tutorial.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#3 2010-06-07 08:54:54

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Sharing problem

The online player isn't that great, especially with large projects with lots of Sprites...

The best solution would probably be to leave a note somewhere like the project notes letting other users know that it works better if you download it  smile .


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#4 2010-06-07 12:56:04

dpant
Scratcher
Registered: 2010-06-07
Posts: 4

Re: Sharing problem

06dknibbs wrote:

The online player isn't that great, especially with large projects with lots of Sprites...

The best solution would probably be to leave a note somewhere like the project notes letting other users know that it works better if you download it  smile .

I've already done that.

I will give it a try with some wait blocks during initialization and see...

Meanwhile, if anyone else has any other idea, please let me know.

Offline

 

#5 2010-06-07 13:09:51

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Sharing problem

dpant wrote:

06dknibbs wrote:

The online player isn't that great, especially with large projects with lots of Sprites...

The best solution would probably be to leave a note somewhere like the project notes letting other users know that it works better if you download it  smile .

I've already done that.

I will give it a try with some wait blocks during initialization and see...

Meanwhile, if anyone else has any other idea, please let me know.

I looked at the code behind your project - try using seperate variables instead of lists for changing X/Y position. I think it's happening because the online player is trying to get too many bits of info out of the same list at the same time, so it gets confused  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#6 2010-06-07 17:04:41

dpant
Scratcher
Registered: 2010-06-07
Posts: 4

Re: Sharing problem

Wolfie1996 wrote:

dpant wrote:

06dknibbs wrote:

The online player isn't that great, especially with large projects with lots of Sprites...

The best solution would probably be to leave a note somewhere like the project notes letting other users know that it works better if you download it  smile .

I've already done that.

I will give it a try with some wait blocks during initialization and see...

Meanwhile, if anyone else has any other idea, please let me know.

I looked at the code behind your project - try using seperate variables instead of lists for changing X/Y position. I think it's happening because the online player is trying to get too many bits of info out of the same list at the same time, so it gets confused  smile

Thank you very much, I'll give it a try.

Offline

 

#7 2010-06-07 17:04:51

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

Re: Sharing problem

The online player has a lot of glitches that make it differ from the offline player. You might want to check out Paddle2See's post on the differences between online mode and offline mode and make sure everything is okay with your project.

Also, if you're using lists, trying to access items outside of the list (for example, item 15 of a 10-item list) can cause an error and stop the project.

Aside from that, I don't have any other ideas on how to help you, sorry  sad

Offline

 

#8 2010-06-08 06:03:54

dpant
Scratcher
Registered: 2010-06-07
Posts: 4

Re: Sharing problem

Thank you very much for your replies. The problem was with the lists and the variables initialization, in general.

I've fixed everything and now the game is ready to play online: http://scratch.mit.edu/projects/dpant/1105250

Thanks.

Offline

 

Board footer