VRushLP / RigorMortisGame

A game made for TCSS491 Computational Worlds, Winter 2016
2 stars 0 forks source link

Fix SwordHitbox on Platform #135

Open tjsg1992 opened 7 years ago

tjsg1992 commented 7 years ago

Swinging your sword while on a moving platform will create a SwordHitbox that does not appear to travel with the knight as it is pulled away by the platform.

This allows weird things like the following situation:

  1. Player is on a moving platform being chased by a wisp.
  2. Player swings their sword, but is not close enough to hit.
  3. The player is pulled further by the moving platform.
  4. Wisp dies a quarter-second later as it flies into where the player just was, because it flies into the SwordHitbox, which is still in the same location.