Fix issue where talking to actor while moving would keep walking while script plays
@@ -33,6 +33,8 @@ void Start_TopDown() {
// set_sprite_tile(8, 24);
// set_sprite_tile(9, 24);
+ player.moving = FALSE;
+
LOG("END START TOPDOWN\n");
}
@@ -132,7 +134,6 @@ void Update_TopDown() {
}
}
}
- }
if (INPUT_A_PRESSED) {
LOG("CHECK HIT\n");
@@ -181,8 +182,9 @@ void Update_TopDown() {
}
}
if (hit_actor) {
- LOG("GOT HIT\n");
+ player.moving = FALSE;
ScriptStart(&actors[hit_actor].events_ptr);
}
}
}
+}
