Introduction
Originally the plugin San_AnalogMove.js has a problem with the direction of diagonal movement:
- When going Up + Right the player turns his direction to the right, but stills go up.
- When going Down + Left the player turns his direction to the left, but stills go down.
- When going Right + Down the player turns his direction to down, but stills go right.
- When going Left + Up the player turns his direction to up, but stills go left.
This can causes issues like the player to open doors that are triggered via player touch while he is facing another direction rather than the door.
Features
Fix direction problem with SAN_AnalogMove.js
How to Use
It's plug and play. Just make sure to put below SAN_AnalogMove.
Spoiler: Eli_FixAnalogMove.js
Credit and Thanks
No need to credit me.
For the original one, give credits to Sanshiro.
It can be used in free and commercial games.
Do not sell or say that you made this plugin.
Thanks for Sanshiro for this amazing pixel movement plugin!
Update Log
SpoilerVersion 1.3 - 01/02/2020
- Changes in the code for better readability.
Version 1.2 - 10/01/2019
- Inserted plugin parameter as a workaround for another problem of direction
and movement with the player, when three directional buttons are pressed.
- Updated help file!
Thanks to ShadowDragon.
Version 1.1 - 09/29/2019
- Fix the direction problem of the followers.
Version 1.0 - 09/27/2019
- Plugin release!
本贴来自国际rpgmaker官方论坛作者:Eliaquim处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/eli_fixanalogmove.113732/