Someone needed an endless runner setup.
So i made a simple setup that has a max. of 3 floor planes on screen at any given time.
- max_distance changed into spawn_distance
- added_before changed into a list and has its own distance check called remove_distance
- added 2 more ground planes and parented objects to it, it now uses random.choice to select one
- added a tiny bit of comments at the things you can change
- player jump height changed and set to tap mode (no flying anymore, but unlimited jumps)
- due to the changes of the distance check, the ground plane will not be removed if you jump at the end
- instead of max. 2 ground planes you now have a max. of 3 ground planes on screen
- the ground plane uses a property(ground) now, so we can grab them all when the game starts
Use W to move and space bar to jump: (new version 1.2)
endless_runner_v1.2.blend (499 KB)