Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

Has anyone implemented the procedural generation fully? my teammate and I are trying to figure out how to make a player spawn in the same position everytime we launch the program. As this is a random "room" generator, I don't how to make it know which room is the start room. any ideas... :/

asked in CSC380Jan2024 by (3k points)
0

You could add a child node to the level your are in, or you can preload the character scene, or create and export variable of type PackedScene and load it that way

2 Answers

+3 votes

I have no idea how procedural geneartion works but could you maybe start it after it loads one room? if not is there a reason why your player couldn't spawn in the same room every time?

answered by (3.8k points)
+2 votes

From what I understand about procedural generation, you might be able to make a 'spawn room' with the spawn in it, and limit the count to one in the generation

answered by (2.4k points)
...