Simple procedural 3D platformer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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 is your question?

SteveSmith | 2022-11-14 11:04

:bust_in_silhouette: Reply From: magicalogic

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.