Entering Room twice automatically issue with MoveObject()/MovePlayer() #1603
Replies: 2 comments
-
When you enter a room, it goes through all of those scripts in a particular sequence. Because of the way it works, if you move the player during the "Before entering the room for the first time" script, any scripts that come after "before entering the room for the first time" will not run for the first room (because they're not in that room anymore), but will run twice for the second room instead. If you're moving the player as part of one of those scripts, I'd suggest putting your scripts in the same script box on both rooms. For example, if both scripts are in the "Before entering the room" boxes for their respective rooms, they will both run once. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a game that I am having an issue with moving the player from the Intro room to the first starting room using either MovePlayer() or MoveObject()
Intro screen with a Wait() before calling MovePlayer() to the "Start" Room

Enter the Start room, it has a Firsttime and an Otherwise script to run, as you can see both have run somehow.

Using one of the Exits to the adjacent rooms only triggers the Firsttime script in that room, no double visits


If I just use a standard Exit to move out of Intro to Start it works just fine

What could be causing that issue?
Beta Was this translation helpful? Give feedback.
All reactions