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.
2 parents 21dfb47 + 6452d6f commit e3346c0Copy full SHA for e3346c0
src/com/redomar/game/entities/Mob.java
@@ -36,6 +36,13 @@ public void move(int xa, int ya) {
36
return;
37
}
38
numSteps++;
39
+
40
+ //Moving Directions
41
+ //0 = Facing UP
42
+ //1 = Facing Down
43
+ //2 = Facing Left
44
+ //3 = Facing Right
45
46
if (!hasCollided(xa, ya)) {
47
if (ya < 0) {
48
movingDir = 0;
src/com/redomar/game/entities/Player.java
@@ -100,6 +100,9 @@ public void render(Screen screen) {
100
} else if (movingDir > 1) {
101
xTile += 4 + ((numSteps >> walkingSpeed) & 1) * 2;
102
flipTop = (movingDir - 1) % 2;
103
+ if(!isMoving){
104
+ xTile = 4;
105
+ }
106
107
108
int modifier = 8 * scale;
0 commit comments