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

#1 2012-09-08 16:11:34

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Online Scratch

I made a project that allows you to make more projects but i dont know how to make it to where you can make your own sprite. Help please.

Offline

 

#2 2012-09-08 16:22:58

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Online Scratch

For a scratch based clone of scratch, the most effective way I can think of would be to have a single sprite and 2 lists, x and ys. The lists contain an item for each sprite, their x and y position, the sprite then goes to that location, and stamps.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-09-08 19:44:35

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: Online Scratch

zammer990 wrote:

For a scratch based clone of scratch, the most effective way I can think of would be to have a single sprite and 2 lists, x and ys. The lists contain an item for each sprite, their x and y position, the sprite then goes to that location, and stamps.

then how would you move it without clearing the pen?

Offline

 

#4 2012-09-08 19:55:22

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Online Scratch

RoboNeo9 wrote:

zammer990 wrote:

For a scratch based clone of scratch, the most effective way I can think of would be to have a single sprite and 2 lists, x and ys. The lists contain an item for each sprite, their x and y position, the sprite then goes to that location, and stamps.

then how would you move it without clearing the pen?

You would clear the pen, but the sprite would constantly be going to all the locations, so it would instantly redraw in the right place.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#5 2012-09-08 20:25:30

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: Online Scratch

zammer990 wrote:

RoboNeo9 wrote:

zammer990 wrote:

For a scratch based clone of scratch, the most effective way I can think of would be to have a single sprite and 2 lists, x and ys. The lists contain an item for each sprite, their x and y position, the sprite then goes to that location, and stamps.

then how would you move it without clearing the pen?

You would clear the pen, but the sprite would constantly be going to all the locations, so it would instantly redraw in the right place.

thanks!

Offline

 

Board footer