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

#1 2011-10-30 11:01:13

ShadowHoundz
New Scratcher
Registered: 2011-10-24
Posts: 10

1 Block Generates Everything?

I seen a game with one sprite that makes a whole level.
How do they do that? I try to look at it but its hard to understand and do.

Offline

 

#2 2011-10-30 11:05:55

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: 1 Block Generates Everything?

They make it stamp

<stamp>

Last edited by laptop97 (2011-10-30 11:06:06)

Offline

 

#3 2011-10-30 11:10:27

ShadowHoundz
New Scratcher
Registered: 2011-10-24
Posts: 10

Re: 1 Block Generates Everything?

Yea but i don't understand thouse huge scripts they do.

Offline

 

#4 2011-10-30 11:51:46

videogame9_test
Scratcher
Registered: 2011-10-17
Posts: 43

Re: 1 Block Generates Everything?

You mean those 1-sprite 1-script projects?

Well, they use only one script to do stuff.

Offline

 

#5 2011-10-30 12:31:06

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

Re: 1 Block Generates Everything?

Basically, the sprite keeps track of things through a list or a bajillion variables. Then, it stamps what it's kept track of. Every time something changes, it goes back and re-stamps it. You can only do it with limited things - primarily grid-type games like SimCity or Minesweeper or Minecraft (though that can really only be done this way 2-dimensionally. But it's really useful in that you don't have to make eighty billion sprites to do the same thing.

Offline

 

#6 2011-11-07 01:40:09

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: 1 Block Generates Everything?

ShadowHoundz wrote:

I seen a game with one sprite that makes a whole level.
How do they do that? I try to look at it but its hard to understand and do.

Post the link to the project and we might be able to explain it


http://i.imgur.com/1QqnHxQ.png

Offline

 

#7 2011-11-07 01:44:07

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: 1 Block Generates Everything?

Adelle5 wrote:

Photo Stamp Remover is a photo correction tool that can remove date stamps, watermarks, scratches, stains, wrinkles, and other unwanted objects from digital photos.
I've visited the site acornsale.com which is related to rubber stamps..

http://www.acornsales.com

Sorry we are talking about the stamp block in scratch but thanks anyway


http://i.imgur.com/1QqnHxQ.png

Offline

 

#8 2011-11-07 03:17:53

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: 1 Block Generates Everything?

Basic the sprite moves, stamps, moves somewhere else  smile


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#9 2011-11-07 10:13:52

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: 1 Block Generates Everything?

Well, using mine as an example:

http://scratch.mit.edu/projects/Smozzick/2114427

(shameless plug).

What I do is have one block of a specific size and stamp it over the screen using the <stamp> block. Whenever I want to change the appearance of the block I change the costume of it.

To get lots of ground done at once I use loops, one loop for columns and one for rows.


http://i50.tinypic.com/ded8m.png

Offline

 

#10 2011-11-07 10:20:51

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: 1 Block Generates Everything?

Further explanation since I can't edit...

In the loop I would do something like:

Loop Start
change x by BlockWidth
Stamp
Loop End

What the stamp actually does is copy an image of the sprite to the stage so make sure that you don't try to have a sprite stamping onto another sprite - the image'll get sent behind it.


http://i50.tinypic.com/ded8m.png

Offline

 

#11 2011-11-07 16:37:48

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: 1 Block Generates Everything?

ShadowHoundz wrote:

Yea but i don't understand thouse huge scripts they do.

I’m not sure what you’re asking. You just make a script that takes care of everything.  tongue  Nothing more than that. There’s not secret word, or anything that magically makes the script pop up.  lol


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer