From d4116eaa0614b52cb12c54cf6aa8ba4f36032879 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Fri, 22 Feb 2019 19:40:01 -0800 Subject: [PATCH] Temporary fix to movement animation speed -- doesn't take velocity into account --- core/src/gdx/diablo/entity/Entity.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/gdx/diablo/entity/Entity.java b/core/src/gdx/diablo/entity/Entity.java index c5253441..f8b3fcb7 100644 --- a/core/src/gdx/diablo/entity/Entity.java +++ b/core/src/gdx/diablo/entity/Entity.java @@ -426,6 +426,13 @@ public class Entity { */ } + // TODO: This seems to work well with the default movement speeds of most entities I've seen + if (mode.equalsIgnoreCase("WL")) { + //animation.setFrameDelta(128); + } else if (mode.equalsIgnoreCase("RN")) { + //animation.setFrameDelta(128); + } + dirty = 0; }