@@HomelessOng you can make an auto load script where you have an array where you add the position of each room you add. Than in the player script in the ready function randomly choose one of the rooms out of the array and instantiate the player there. That's how I did it.
Did you check your getroomstoconnect func? And you add the rooms correctly to the dungeonconnections array in the generaterooms func? I never encountered your problem.
Very cool dude!
Great tutorial! How could i instance a player scene in one of the rooms randomly?
@@HomelessOng you can make an auto load script where you have an array where you add the position of each room you add. Than in the player script in the ready function randomly choose one of the rooms out of the array and instantiate the player there. That's how I did it.
@@kuchi8115 okay nice I’ll try that out
German accent goes BRRRRR
New dani?
There are some case that one room not connected to any other rooms. Do you know why?
Did you check your getroomstoconnect func?
And you add the rooms correctly to the dungeonconnections array in the generaterooms func?
I never encountered your problem.
@@kuchi8115 My bad, I solve it. Just a wrong index in this line :
var room2 = dungeon_connections[0]
Thanks for the answer tho