We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791a1b6 commit 52d7e18Copy full SHA for 52d7e18
TaleKit/Network/Packet/Characters/Walk.cs
@@ -31,7 +31,13 @@ public class WalkProcessor : PacketProcessor<Walk>
31
{
32
protected override void Process(Session session, Walk packet)
33
34
- Task.Delay(1000).Then(() =>
+ var distance = session.Character.Position.GetDistance(new Position
35
+ {
36
+ X = packet.X,
37
+ Y = packet.Y
38
+ });
39
+
40
+ Task.Delay(distance * 200).Then(() =>
41
42
session.Character.Position = new Position
43
0 commit comments