Discuss Scratch

HeroicToaster
Scratcher
92 posts

Procedural Generation [River, Holes etc.]

GAME: https://scratch.mit.edu/projects/186763111/#editor

I would like to add rivers to my world generation, but I am having trouble coming up with a procedure to generate a river or a lake. Any ideas that could help me? (The costume for the river is already in the sprite: World) + (The generation script is the:

when green flag clicked
with stamps, movement, etc.

Thank you!
asivi
Scratcher
1000+ posts

Procedural Generation [River, Holes etc.]

Edit
Forget this.

Last edited by asivi (Dec. 6, 2017 12:04:49)



HeroicToaster
Scratcher
92 posts

Procedural Generation [River, Holes etc.]

asivi wrote:

Edit
Forget this.

You are saying it is impossible?
Uniquename1
Scratcher
100+ posts

Procedural Generation [River, Holes etc.]

you could let it build the world as it does then add onto the draw grass custom block at the end to go to front (not sure if thats necessary), switch costume to water. go to: x: pick random y: 160 stamp then repeat some number of times as it goes down changing y by 10 much like the grass made itself. You could work something out to get it to meander down randomly if you want it different each time. Just adding a change x by pick random -10 to 10 works nicely even though it is off off everything else being on the tens because it can go over by say 2 but looks fine.

https://scratch.mit.edu/projects/191536301/

Last edited by Uniquename1 (Dec. 6, 2017 23:01:59)


Try my games.
Scratch Sprite Club VI Soccer
Star Fighter Shooting
Space Marines: Boarding Party Strategy
Lion Runner Running/ Platformer
asivi
Scratcher
1000+ posts

Procedural Generation [River, Holes etc.]

HeroicToaster wrote:

asivi wrote:

Edit
Forget this.

You are saying it is impossible?

Sorry, i should have said ignore this.


Powered by DjangoBB

Standard | Mobile