Jump to content

Working Direction Tapping Mod


jcsnider
 Share

Recommended Posts

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:

16f83334fe56f8b40be80ca818d9e5da.gif

 

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!

 

 

Link to comment
Share on other sites

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 :). 

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

  • 11 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...