bsergent / overmorrow

Typescript canvas game engine
http://challengercity.com/v4/projects/overmorrow/
0 stars 1 forks source link

Collidee should not have their movement reset #24

Open bsergent opened 6 years ago

bsergent commented 6 years ago

Currently, if an entity is moving out of a tile and another entity attempts to move into the previously occupied tile while the first entity is still in the process of moving, the second entity (collider) gets their movement reverted as expected. However, the first entity (collidee) also has their movement reverted even though they didn't run into anything; they were just run into.

The entity moving out of the collided tile should not have movement reset.