This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

MoveToPosition and FaceAt direction messed up after portal travelling

Here you can find all solved gameplay problems and bugs (beginning from Pre-Alpha 1.8.8).
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Locked
User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 27

MoveToPosition and FaceAt direction messed up after portal travelling

Post by JakSparro98 » Sat Mar 03, 2018 3:44 am

After a player enters a portal and exits the opposite direction, the movement direction in inverted as intended, however, if the player performs the StartMoveToPosition command after the queue was cleared and after a StopAll command he will still continue to go in the opposite direction, also the FaceAt command seems to suffer this problem.

Image

Map example
3 x

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

Post by Gurt » Sun Jul 08, 2018 2:17 pm

Fixed for the release.
Updated the MoveToPosition command to stop when the player is moving through a portal and exiting facing the other direction. Up to the map maker to handle this case.
4 x
Gurt

Locked