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

#1 2011-10-27 19:30:36

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

Random Terrain Generator

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

So, I made a random terrain generator and in my opinion its pretty good. Problem is that very rarely the water glitches and deletes the bedrock and sort of cascades. Could anyone have a look at the programming and find the problem?

Also, I appreciate opinions if anyone doesn't mind taking a look at it ^^


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

Offline

 

#2 2011-10-27 19:38:01

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

Re: Random Terrain Generator

I know so far sort of what's causing it - that a variable is being reduced by 1 at 0 so it becomes -1 and mucks up a later equation.

The problem is that I thought I'd fixed that by making it so that if the number is less than 2 instead of being between 0 and 3 it goes to 3.

Again, any ideas for a solution or opinions on the project itself are appreciated ^^


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

Offline

 

#3 2011-10-27 21:36:06

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

Re: Random Terrain Generator

hmm, bump.


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

Offline

 

#4 2011-10-27 21:37:44

FallenIce
Scratcher
Registered: 2011-10-14
Posts: 100+

Re: Random Terrain Generator

cool


http://i.imgur.com/Yc7aC.gif

Offline

 

#5 2011-10-28 10:37:49

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Random Terrain Generator

Cool, how long did it take to make?


Why

Offline

 

#6 2011-10-28 15:21:46

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

Re: Random Terrain Generator

Whoops sorry only just checked this.

It took me about 2-3 hours to make what its up to now with the land, water, tree creation and about another half hour/hour to make the faster side scrolling version here: http://scratch.mit.edu/projects/Smozzick/2109683

Thanks for looking at it and I'm glad you both liked it ^^


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

Offline

 

#7 2011-10-28 16:20:15

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

Re: Random Terrain Generator

woops*


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

Offline

 

#8 2011-10-29 07:19:04

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

Re: Random Terrain Generator

bump, also made a generator for a terraria/minecraft like game here: http://scratch.mit.edu/projects/Smozzick/2110746

Currently there's a bug with the trees not going to the right place though.


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

Offline

 

#9 2011-10-29 11:27:27

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

Re: Random Terrain Generator

bug fixed ^^ bump


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

Offline

 

Board footer