Jump to content

LinkMovement.zh

Overview
Creator: Moosh Updated: 12 Jun 2021 Tags: Global, Library Downloads: 120
Rating[?]: Rating: 4.6/5 (4 ratings)
View Script Download Script
(5.02 KB)
Information

Description Setup Reviews Comments

This header contains a global script and some functions that I use in my own projects for handling moving Link by non integer amounts. Features of the header include:
  • Moving Link by non integer amounts
  • Adding modifiers to Link's step speed
  • Detecting which direction takes priority when opposing directions are held
Update 2/9/18: Fixed bug with speed boosts not affecting Link while in the air. Also fixed a bug where input killing scripts broke StickX and StickY.
Update 3/20/18: Updated the CanWalk function to work better with sideview.
Update 3/24/18: More tweaks to CanWalk.
Update 6/9/18: Fixed some bugs with negative speed boosts.
Update 6/12/18: Added LinkMovement_UndoLinkMovement()
Update 6/16/18: Fixed more bugs with negative speed boost. Added compatibility for (somewhat buggy) 4-way movement.
Update 6/30/18: Fixed bug with speed boost clipping Link through push blocks.
Update 6/12/21: Finally added a fix for push block collision.
Update 1/7/24: Fixed ancient bug that was causing speed boosts to not affect spin attack charge