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

#1 2012-10-21 13:36:38

Seil
Scratcher
Registered: 2011-09-02
Posts: 100+

Adding/Deleting Lists

In my case, I'm making a Minecraft level generation project. Only certain people would understand this  smile ; I'm thinking of having new chunks added to one list as the level generates, and as you explore the world new chunks are added relative to where you are on the list. It will also use a coordinate system to map each tiled block.

Anyways, I think it would be easier (also for other things maybe too), if there was a block that creates a new list/deletes an existing list.

The block would look something like this:
|create list [string]|

If it creates a list that already has the same name as another list, it would act like costume naming, it just adds 1 to the end of the name, then 2, then 3, etc.

You could also use blocks like "join [][]" and other operator blocks in the list name.

This would help me at least, because instead of having the whole Minecraft generated world in one list, I could have each chunk as a separate list. This would also make it easier for things like infinite terrain generation.

The delete list block would look similar to the create list block:
|delete list [string]|

Except with this block, you could put one of those rounded list blocks such as (test) in the string input, or just type in the name of a variable that doesn't exist yet but will be created. If the list doesn't exist at the time then the block will turn red. I'm not really sure about this block yet, I would appreciate some suggestions for this block if anyone has any.

So what do you guys think of these block ideas?


http://legacy-cdn.smosh.com/smosh-pit/022011/spongebob-gif-lol.gif

Offline

 

#2 2012-10-21 14:05:26

PonyvilleSlugger
Scratcher
Registered: 2012-07-01
Posts: 100+

Re: Adding/Deleting Lists

Well, I made something that creates a 2d world by having each item on a list be a column with each number being a block from 0-9 with the alphabet being included.

It'd be easy to adjust this system, if you want to take a look.


♫ 8% of teens pretend to be morally superior due to the music they listen to. If you are one of the 92% of teens who don't, copy and paste this into your signature. ♫♪
http://i46.tinypic.com/waj11e.gif

Offline

 

Board footer