How to use the player in scripts?

Satan666
23 Feb 2019, 21:03As usual, this dumb thing stumped me again.
I'm still trying to teleport myself to a new map, and I have the map made and everything, but I can't seem to teleport the player into the map. There isn't any object I can select to move the player. How am I supposed to write a script that transports the player to a different room?
Thanks in advance.
hegemonkhan
23 Feb 2019, 21:31if you kept the default name of 'player' for your default Player Object (or you can just use the 'game.pov' instead):
player.parent = NAME_OF_DESTINATION_OBJECT
for example: player.parent = room99
or, using the 'MoveObject' helper Function/Script:
MoveObject (NAME_OF_MOVING_OBJECT, NAME_OF_DESTINATION_OBJECT)
for example: MoveObject (player, room99)
// or, we just use 'game.pov' instead:
game.pov.parent = room99
// or:
MoveObject (game.pov, room99)
if you renamed your Player Object, then use that instead of 'player', or you can use 'game.pov' instead of 'player'
// pretend we renamed the Player Object to: HK
HK.parent = room99
// or:
MoveObject (HK, room99)
// or, we just use 'game.pov' instead:
game.pov.parent = room99
// or:
MoveObject (game.pov, room99)
I think in the GUI/Editor, it should be something like this:
'WHATEVER' scripting Element (Verb, Command, Turnscript, Timer, etc) -> add new script -> 'Objects' (I think) category/section -> 'something like like this: move an object' Script/Function