Accidentally deleted first room and player

Father
11 Nov 2022, 17:19Like an idiot I have done the above. I created a new player and made it scenery and a new first room . But how do I start the game in the new first room . The game insists on using the second room. Using opening scripts to immediately move don’t work. I don’t understand code. Can some kind person help? I don’t want to alter the second room as it is quite complicated with scripts and descriptions.

Father
12 Nov 2022, 07:52Further to above . The deleted part still exists as the game is published but not on public. If I update it in its present state I will lose the opening room.
The Pixie
12 Nov 2022, 08:26It is a while since I used Quest, but I think you need to go to the "game" object and set the player object there to your new player.

Father
12 Nov 2022, 17:03I created an object Player and set it as player object but it refused to move from first room. I created a new object with a different name. I nominated it as the player. This moved perfectly but left an error message saying unknown object or variable Player on all new moves. The original player was not deleted but the room it was in was accidentally deleted. Perhaps references to it are still in there.
Is it possible to recover the original incorrupted game code which is still on quest. Published but not publicly. I personally only have an iPad and cannot download. My computer skills are very limited, as you can probably see from my clumsy way of trying to explain things.
mrangel
13 Nov 2022, 07:02I created an object Player and set it as player object but it refused to move from first room. I created a new object with a different name. I nominated it as the player. This moved perfectly but left an error message saying unknown object or variable Player on all new move
The built in scripts all use game.pov
, which means the object you selected as the player on the 'Player' tab of the game object.
If that isn't set, it will use any object named player
(note that's not the same as Player
); and if there isn't one it will create it in the first room (at the top of the list in the editor).
So… if your scripts refer to an object called Player
(or player
), it's up to you to make sure that there's an object with that name.

Father
13 Nov 2022, 16:23Thank you mrangel . I created an object Player and made it scenery. That seemed to cure the problem. I must have created Player in desperation to fix this mess but I did not to my knowledge add it to any scripts. I like to write games but coding is beyond me. Probably my brain is too old. Anyway thanks for getting an old man out of a muddle.