Topic was automatically imported from the old Question2Answer platform.
Asked By
gwk
Hi.
I am working on a parkour game and i want procedural levels.
My idea is really simple, i just want to have floating boxes that change in height so the player can jump on them. they only need to go in one direction.
What you need is to instanciate the box through code then set its y position to a random value and its z position to the box spacing times the number of boxes created so far.
You can use randf_range() to get random number in a certain range.
Run that through a loop and you have what you are looking for.