#How to make enemies and the player to respect relativity theory while on moving platforms?

1 messages · Page 1 of 1 (latest)

worthy sapphire
#

Currently, when a player or enemy is in a moving platform, the Y and X velocities will stack/substract depending if the entity is moving in the same direction than the platform. This should not happen! After trying a few scripts with no luck, I have come in here to ask the experienced developers: what is the right way to prevent this from happening?

Thank you very much!

warm hornet
#

Might be easier if you’re using a statemachine tho.