0 votes

Hello guys i have a little question:
i followed this tutorial on youtube : https://www.youtube.com/watch?v=1JcrXlD-iCU to make procedural rooms 2d for a school project but now im trying to instance a new room next to previus like The binding of isaac but i have no idea.
my first idea was to declare a list[] and load the scenes in a for circle but i didnt have any resoult.

can i have an help?

in Engine by (12 points)

1 Answer

0 votes

You could instance the same scene again, add it to your games root-node (get_tree().get_root() or just get_parent() in root-node of your scene)
then set it to the desired position, move your player into the new room, and queue_free the old one.
Or just hide it (visible = false) it, incase you want to go back. If your Roomgenerator is deterministic, you can just save the seed from the random number generator and regenerate if, if nececcary.

by (1,412 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.