I want to know how to make land load instead of having one solid picture as a peice of land.
Please post a script a by using the scratch blocks thing
if u cant do the scratchblocks just send me a link to a test project and ill use those scripts
Last edited by hunter6690 (2012-07-21 01:04:34)
Offline
Please reply i really need this answer!
Offline
You will need a script that places random blocks via a script. Let me think...
Offline
Offline
SciTecCf wrote:
That would be great, but I think he needs set terains to load not random xD
Offline
SciTecCf wrote:
Well, you could use
switch to backgroundpick random1to5Change that 5 to the amount of backgrounds you have.
I think he/she wants it to load in individual blocks.
Offline
jontmy00 wrote:
SciTecCf wrote:
Well, you could use
switch to backgroundpick random1to5Change that 5 to the amount of backgrounds you have.I think he/she wants it to load in individual blocks.
Posted that earlier.
Offline
Ok,Guys is there an easier script then in the one by SciTechCf
Offline
Does anyone know hoe to setup the stamping then instead of random genaration
Something like this
whenclicked
Repeat10goto x:y:move10stepsstamp
Last edited by hunter6690 (2012-07-22 00:11:14)
Offline
hunter6690 wrote:
Does anyone know hoe to setup the stamping then instead of random genaration
Something like thiswhenclicked
Repeat10goto x:y:move10stepsstamp
Stamping is random generation else what will you stamp?
Offline
Well, if you want it to be effecient you have to use arrays.
Let's say you have 5 different types of blocks, each assigned a number:
0=sky/open space
1= grass
2= dirt
3= stone
4= wood
5= leaves
You could put those numbers together in a way like so:
00000000000000000000 00000000000000000000 00000000000000000000 00000000000000500000 00000000000005550000 00000000000005550000 00000000000000400000 00000000000000400000 00000000000000400000 11111111111111111111 22222222322222222232 22233222332223333222 22233322333223332233 33233333323333332333 33333333333333333333
In a list, where each line is a different item.
Then you would have to repeats inside eachother:
Where the one nested inside the first one would draw x positions and the one on the outside would set the y positions. Kinda like this (I don't know the block dimensions, so this would be for 20X20 blocks which would need a 20x20 array.):repeatrepeat
whenclicked
clearhidego to x:-220y:170setletter ▼to0setrow ▼to1repeat18repeat24changeletter ▼by1switch to costumeletterletterofitemrowoflevel ▼stampchange x by20setletter ▼to0changerow ▼by1set x to-220change y by-20
Offline
TorbyFork234 wrote:
Well, if you want it to be effecient you have to use arrays.
Let's say you have 5 different types of blocks, each assigned a number:
0=sky/open space
1= grass
2= dirt
3= stone
4= wood
5= leaves
You could put those numbers together in a way like so:Code:
00000000000000000000 00000000000000000000 00000000000000000000 00000000000000500000 00000000000005550000 00000000000005550000 00000000000000400000 00000000000000400000 00000000000000400000 11111111111111111111 22222222322222222232 22233222332223333222 22233322333223332233 33233333323333332333 33333333333333333333In a list, where each line is a different item.
Then you would have to repeats inside eachother:Where the one nested inside the first one would draw x positions and the one on the outside would set the y positions. Kinda like this (I don't know the block dimensions, so this would be for 20X20 blocks which would need a 20x20 array.):repeatrepeat
For each number, you would have to assign a costume for it. Like for the sky, you would have costume# 1 would be sky, costume# 2 would be grass (you would have to have the costume# be the number it's representing+1)whenclicked
clearhidego to x:-220y:170setletter ▼to0setrow ▼to1repeat18repeat24changeletter ▼by1switch to costumeletterletterofitemrowoflevel ▼stampchange x by20setletter ▼to0changerow ▼by1set x to-220change y by-20
I have a older project without the land genaration and here is the [link]http://scratch.mit.edu/projects/hunter6690/2685579[/link]]
Offline
hunter6690 wrote:
Ok,Guys is there an easier script then in the one by SciTechCf
That was the simplest way to achieve that that I could think of.
Feel free to remix and use my script.
Offline
TorbyFork234 wrote:
Well, if you want it to be effecient you have to use arrays.
Let's say you have 5 different types of blocks, each assigned a number:
0=sky/open space
1= grass
2= dirt
3= stone
4= wood
5= leaves
You could put those numbers together in a way like so:Code:
00000000000000000000 00000000000000000000 00000000000000000000 00000000000000500000 00000000000005550000 00000000000005550000 00000000000000400000 00000000000000400000 00000000000000400000 11111111111111111111 22222222322222222232 22233222332223333222 22233322333223332233 33233333323333332333 33333333333333333333In a list, where each line is a different item.
Then you would have to repeats inside eachother:Where the one nested inside the first one would draw x positions and the one on the outside would set the y positions. Kinda like this (I don't know the block dimensions, so this would be for 20X20 blocks which would need a 20x20 array.):repeatrepeat
For each number, you would have to assign a costume for it. Like for the sky, you would have costume# 1 would be sky, costume# 2 would be grass (you would have to have the costume# be the number it's representing+1)whenclicked
clearhidego to x:-220y:170setletter ▼to0setrow ▼to1repeat18repeat24changeletter ▼by1switch to costumeletterletterofitemrowoflevel ▼stampchange x by20setletter ▼to0changerow ▼by1set x to-220change y by-20
Im gonna use your's!
Offline
Check my newest project, Is it what you're looking for?
Offline
hunter6690 wrote:
TorbyFork234 wrote:
Well, if you want it to be effecient you have to use arrays.
Let's say you have 5 different types of blocks, each assigned a number:
0=sky/open space
1= grass
2= dirt
3= stone
4= wood
5= leaves
You could put those numbers together in a way like so:Code:
00000000000000000000 00000000000000000000 00000000000000000000 00000000000000500000 00000000000005550000 00000000000005550000 00000000000000400000 00000000000000400000 00000000000000400000 11111111111111111111 22222222322222222232 22233222332223333222 22233322333223332233 33233333323333332333 33333333333333333333In a list, where each line is a different item.
Then you would have to repeats inside eachother:Where the one nested inside the first one would draw x positions and the one on the outside would set the y positions. Kinda like this (I don't know the block dimensions, so this would be for 20X20 blocks which would need a 20x20 array.):repeatrepeat
For each number, you would have to assign a costume for it. Like for the sky, you would have costume# 1 would be sky, costume# 2 would be grass (you would have to have the costume# be the number it's representing+1)whenclicked
setimage-width ▼to20set it to the width of the image in pixelssetimage-height ▼to20set it to the height of the image in pixelsclear(above) there should be the dimensions under the costume.hidego to x:y:-240+image-width/2180-image-height/2editedsetletter ▼to0setrow ▼to1repeat360/image-heighteditedrepeat480/image-widtheditedchangeletter ▼by1switch to costumeletterletterofitemrowoflevel ▼stampchange x byimage-widtheditedsetletter ▼to0changerow ▼by1set x to-240+image-width/2editedchange y byimage-height*-1editedIm gonna use your's!
Make sure to edit the numbers with a comment next to them to match the blocks you're using (I edited the scripts in this quote to help you. The part that's not showing with the image-height/image-width variables is the word "pixels").
Last edited by TorbyFork234 (2012-07-22 13:45:52)
Offline
Offline