Infinite runner Game

Hi Guys.
Due to @“my_name (<_>)”'s Request, I’m making an infinite Runner Game.
I have some trouble with generating the world. even though it’s the same pattern.
My Game: https://flowlab.io/game/view/1293348
It’s On the level called “Glitch Game”, And the code is on the object Called “Glitch Game Builder.”
I’m Trying to make it so the “Builder” telepotrs the the next block and spawns the block that makes up the level.
Please Show me what I did wrong.
Thanks!

*Teleports

Hi!
This example, that grazer made quite some time ago, might help you :slight_smile:
https://flowlab.io/game/play/780150

“Endless Runner”
It uses a “timer” and “Random” to generate chunks of terrain as the player proceeds through the level.

Here, you just need to change the Y that you spawn the blocks at and the speed in which you spawn them, heres how I what I did, you can change the numbers if you want:
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":360,"y":416,"group":"","id":"b924c4f3001fb740","resetOnLevelStart":false},{"delay":2,"count":0,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":540,"y":416,"group":"","id":"b924c96b4a30a44c"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":900,"y":416,"group":"","id":"b924ecb8f251b649","startVal":0,"tag":""},{"inputCount":3,"outputCount":1,"name":"Spawn","behaviorType":"logic.components.Spawn2","x":1440,"y":704,"group":"","id":"b9250a9cb504654f","entityClassId":7280751,"spawnX":0,"spawnY":448},{"inputCount":3,"outputCount":1,"name":"Spawn","behaviorType":"logic.components.Spawn2","x":1440,"y":192,"group":"","id":"b9264453a2047f44","entityClassId":7280751,"spawnX":0,"spawnY":0},{"inputCount":3,"outputCount":1,"name":"Spawn","behaviorType":"logic.components.Spawn2","x":1440,"y":320,"group":"","id":"b9264a9ade863741","entityClassId":7280751,"spawnX":0,"spawnY":32},{"inputCount":3,"outputCount":1,"name":"Spawn","behaviorType":"logic.components.Spawn2","x":1440,"y":544,"group":"","id":"b92651f7aacaf34e","entityClassId":7280751,"spawnX":0,"spawnY":416},{"inputCount":4,"outputCount":2,"name":"Position","behaviorType":"logic.properties.Position","x":1080,"y":160,"group":"","id":"b9326c5f7e2bd24a","pixelUnits":false,"resetVelocity":false},{"delay":1,"count":1,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":1260,"y":448,"group":"","id":"b940712cf720954a"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":720,"y":480,"group":"","id":"bda0f9d89d2fd24b","startVal":32,"tag":""}],"links":[{"input_id":"b924c96b4a30a44ci0","output_id":"b924c4f3001fb740o0"},{"input_id":"b9326c5f7e2bd24ai2","output_id":"b924c96b4a30a44co0"},{"input_id":"bda0f9d89d2fd24bi1","output_id":"b924c96b4a30a44co0"},{"input_id":"b924ecb8f251b649i2","output_id":"bda0f9d89d2fd24bo0"},{"input_id":"b9264453a2047f44i0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9264a9ade863741i0","output_id":"b924ecb8f251b649o0"},{"input_id":"b940712cf720954ai0","output_id":"b924ecb8f251b649o0"},{"input_id":"b92651f7aacaf34ei0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9250a9cb504654fi0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9250a9cb504654fi0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9250a9cb504654fi2","output_id":"b940712cf720954ao0"},{"input_id":"b9264453a2047f44i0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9264453a2047f44i2","output_id":"b940712cf720954ao0"},{"input_id":"b9264a9ade863741i0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9264a9ade863741i2","output_id":"b940712cf720954ao0"},{"input_id":"b92651f7aacaf34ei0","output_id":"b924ecb8f251b649o0"},{"input_id":"b92651f7aacaf34ei2","output_id":"b940712cf720954ao0"},{"input_id":"b9326c5f7e2bd24ai2","output_id":"b924c96b4a30a44co0"},{"input_id":"b940712cf720954ai0","output_id":"b924ecb8f251b649o0"},{"input_id":"b9264453a2047f44i2","output_id":"b940712cf720954ao0"},{"input_id":"b9264a9ade863741i2","output_id":"b940712cf720954ao0"},{"input_id":"b92651f7aacaf34ei2","output_id":"b940712cf720954ao0"},{"input_id":"b9250a9cb504654fi2","output_id":"b940712cf720954ao0"},{"input_id":"bda0f9d89d2fd24bi1","output_id":"b924c96b4a30a44co0"}{"input_id":"b924ecb8f251b649i2","output_id":"bda0f9d89d2fd24bo0"}]}}}

Thanks!
I Hope It Works!

hi, its @yanninanny, on my other account.
i tried to import @“my_name (<_>)” 's code, but when i do so nothing gets imported.
anyone knows why?

My_name (<_>), how do you import the code you put here?

Whoops! It appears I messed something up, I was messing with the format of the message and must have changed it. Sorry, I can see if I can do it again

It looks like you figures something out through, gl with your game!