Godot Version
4.4.stable
Question
I’ve been wanting to make a metroidvania for a while, but I really wanted to try and make the rooms load into each other seamlessly, so I thought maybe chunk loading would make this possible somehow.
What I was thinking was each room would be a separate scene with a tileset, background, enemies and such… named room_0_0.tscn or room_15_129.tscn, etc. and whenever the player is within range or close to that room, and the room isn’t loaded already it would load it by using something like load("res://room/room_"+str(room_position.x)+"_"+str(room_position.y)+".tscn")
and anywhere there’s a room I haven’t created for that coordinates it would just load a wall of solid tiles or just a blank wall or something. The rooms would not need any randomness or anything. They’d just be rooms I would build myself in editor. I am also aware that its bad to use load over preload but I’m not exactly sure how else I could do something like this because you can’t really put strings into preloads from what I understand.
I was using this guide to try and extract something from the idea of chunk loading, but understanding it is somewhat confusing and although I feel like I’ve gotten close to understanding it I’m still a bit lost. Any amount of help would be appreciated.