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

#1 2011-09-03 22:15:19

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

World Generator

So I've been playing around with random world generators and I'd like some tips on it: http://scratch.mit.edu/projects/Magnie/2011626. The display online is messed up, meaning something is wrong with the Flash Player's math functions.

I'm wondering how I would use detection of tiles the player can't walk on/over. Like stone or something.

Also, if you have any ideas on how to increase the display speed, that would be nice.  smile

Keys: WASD

Last edited by Magnie (2011-09-03 22:15:45)

Offline

 

#2 2011-09-03 23:10:56

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: World Generator

The easiest way to be use color(either green or black, etc.), or you could try making some kind of array that detects the edges that shouldn't be gone through, that are of a certain tiles.

It would also be easier to just remove the black line as well, and bumping into something would move you 1 backward.

Good project as well. I have also been experiencing some troubles with the Flash Player.

My best suggestion to generate a world would be to generate land and mountains, and randomly put lakes around land not on mountains.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

Board footer