Author Topic: ChangeRoom vs SetAsPlayer  (Read 104 times)

ChangeRoom vs SetAsPlayer
« on: 20 May 2020, 23:25 »
I have several characters in some rooms. And they move in rooms and teleport to another rooms. And player can choose any character (SetAsPlayer).

And sometimes there's error. Maybe, when character in teleport mode (ChangeRoom), he can't to set as player? And game is out after that error.



The same error was about SetAsPlayer.
« Last Edit: 21 May 2020, 00:16 by Sledgy »

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on one or more games that won an AGS Award!
    •  
    • Cassiebsg worked on one or more games that was nominated for an AGS Award!
Re: ChangeRoom vs SetAsPlayer
« Reply #1 on: 21 May 2020, 07:41 »
The error says it already. You have issued a RestartGame, so the game will Restart when the function ends. And therefor you can't change room or change to another player at the end of the function either.
So find out why you have issued a RestartGame and fix it.
There are those who believe that life here began out there...