jcsnider Posted March 30, 2020 Posted March 30, 2020 Direction Tapping Mod  Description: This mod alters player input handling in order to allow turning the player without moving by quick tapping the directional input keys.  Media:  Git Patch: Download  Based On: Version: 0.6.1.239 Commit: faedd06  Setup: No extra setup steps required. Just install the patch and run. Try quickly (very quickly) tapping WASD or the arrow keys and your character should turn without moving to a new tile.  Notes: The logic isn't perfect. You gotta tap so fast that you often move to another tile by accident. I didn't want the delay, however, to make movement feel too clunky. There's definitely room for improvement and I invite others to expand on this and create a better implementation!   WereAlpaca, Alexoune001, Ainz Ooal Gown and 4 others 7
jcsnider Posted April 1, 2020 Author Posted April 1, 2020 There is a bug with this that I'll try to fix later tonight: https://cdn.discordapp.com/attachments/502642435118333953/694920615676608603/2020-04-01_15-45-22.mp4 Kibbelz 1
WereAlpaca Posted April 1, 2020 Posted April 1, 2020 Great for satisfying a higher player skill in combat! Thank you!
jcsnider Posted April 2, 2020 Author Posted April 2, 2020 So the code for the mod is solid.. but our input handling code in the base engine itself need a small tweak. I've created a PR, and once merged the bug above will be fixed: https://github.com/AscensionGameDev/Intersect-Engine/pull/62 Justn 1
Hickie Posted April 2, 2020 Posted April 2, 2020 Possibly instead of double pressing a direction hold down a button eg ctrl and then pressing directions turns on the spot. Could feel smoother.
jcsnider Posted April 2, 2020 Author Posted April 2, 2020 2 minutes ago, Hickie said: Possibly instead of double pressing a direction hold down a button eg ctrl and then pressing directions turns on the spot. Could feel smoother. Â Would definitely be a lot better. I don't particularly want to dive into adding additional controls but I welcome others to expand on this patch :).Â
Kibbelz Posted April 2, 2020 Posted April 2, 2020 3 hours ago, jcsnider said: So the code for the mod is solid.. but our input handling code in the base engine itself need a small tweak. I've created a PR, and once merged the bug above will be fixed: https://github.com/AscensionGameDev/Intersect-Engine/pull/62 Accepted pull request and merged into main branch. Everyone using this feature needs to merge with the latest master branch!
Guest Posted April 2, 2020 Posted April 2, 2020 Error when apply  Quote G:\Celtos Online\Intersect-Engine>git apply --check Tap.patch error: patch failed: Intersect.Client/Entities/Player.cs:831 error: Intersect.Client/Entities/Player.cs: patch does not apply Â
Justn Posted April 2, 2020 Posted April 2, 2020 Working great. I did up the time just a tad to 90ms. Felt too sensitive on my keyboard. Thank you sir!  @Celtos Maybe you need to up the time a bit as well?  MoveDirectionTimers = Globals.System.GetTimeMs() + 60Â
Guest Posted April 3, 2020 Posted April 3, 2020 I don't even think this function because I couldn't insert it in my code ... Gives this error when importing  Quote G:\Celtos Online\Intersect-Engine>git apply --check Tap.patch error: patch failed: Intersect.Client/Entities/Player.cs:831 error: Intersect.Client/Entities/Player.cs: patch does not apply Â
Justn Posted April 3, 2020 Posted April 3, 2020 2 minutes ago, Celtos said: I don't even think this function because I couldn't insert it in my code ... Gives this error when importing   Have you searched the code to see if it is there? Ctrl+fÂ
BrunoWrier Posted April 7, 2020 Posted April 7, 2020 On 4/2/2020 at 4:23 PM, Celtos said: Error when apply   same here
Nimbus Posted April 2, 2021 Posted April 2, 2021 I can't get this to work since upgrading to the most recent build =/. Used to work back on 6.1.xx
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now