Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the 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: 25

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: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

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