Terrain generation

Basically, i tried making so if a character collides with generation hitbox, a new chunk appears. it kinda works, but second time generaation hitbox does not go in it’s place (instead stays in 0,0, as it was generated), and even if player collides with it, it does not work. any ideas how to fix it?

seriously, i need it fixed soon

can anyone send someone a link to this post? or just answer me?

You just want to generate a new piece of land when player collides with a hitbox?

It’s hard to figure out exactly what you want to do from the events.

Something like this?
Terrain_Gen



изображение

yes, like this i guess

but every chunk has a gen. hitbox assigned… or it should. everything is in the code i sent i think

hey , i still need it fixed. Your medhod works only if there are generation areas pre-made, but mine uses generation point at edge of chunk to (probally) make the generation infinite. so, i still don’t know how to fix this issue

THIS IS NOT A CLOSED TOPIC!! How to assign new hitboxes to generating chunks?