Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How Do You Get Randomly Generated Trees On A RPG Script
- Bonnie49er1
- Scratcher
17 posts
How Do You Get Randomly Generated Trees On A RPG Script
Hello if you haven't read by the title I was wondering how I can make a random tree generation for a survival game I am working on.
Here is the link to the original project that
https://scratch.mit.edu/projects/436715220/
I just copied my own project and I am making a survival game based off of it.
Here is the link to the original project that
https://scratch.mit.edu/projects/436715220/
I just copied my own project and I am making a survival game based off of it.
when green flag clicked
repeat until <<I delete this account> or <Scratch gets shut down>>
program::#00FFFF
end
Last edited by Bonnie49er1 (Oct. 15, 2021 14:48:25)
- orangetheory
- Scratcher
500+ posts
How Do You Get Randomly Generated Trees On A RPG Script
You can clone the trees instead of making a bunch of different sprites, then make them go to a random position.
when green flag clicked
repeat (amount preffered::grey)
create clone of [myself v]
end
when I start as a clone
go to x: (pick random(-240) to (240)) y: (pick random (-180) to (180))
other scripts::grey
-Frisbee- -Cricket--Basketball--Forums--Mapping--Coding--Trigonometry master--Mathematics King--Future Prime Minister--Intro-Maker-
I know HTML/CSS, and JavaScript, and with these coding skills I have made some decent projects! Test them out below!
~Archery~Cops + Robbers~
Want an intro, outro, music, effects, or more? Check out the intro shop!
The forum helpers, a place where we help people in the forums
- Bonnie49er1
- Scratcher
17 posts
How Do You Get Randomly Generated Trees On A RPG Script
but this just moves with the player and there is no way to chop them in my little game You can clone the trees instead of making a bunch of different sprites, then make them go to a random position.when green flag clicked
repeat (amount preffered::grey)
create clone of [myself v]
end
when I start as a clone
go to x: (pick random(-240) to (240)) y: (pick random (-180) to (180))
other scripts::grey
- Discussion Forums
- » Help with Scripts
- » How Do You Get Randomly Generated Trees On A RPG Script