From d33dc0318339419d037ed45f89afbc474c9feb75 Mon Sep 17 00:00:00 2001 From: Timur Date: Thu, 29 Dec 2022 17:05:20 +1000 Subject: [PATCH] add missing variable --- documentation/01_tutorial/10-9-enemies-and-basic-ai.html.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/01_tutorial/10-9-enemies-and-basic-ai.html.md b/documentation/01_tutorial/10-9-enemies-and-basic-ai.html.md index 89b78af4f..fe658a40f 100644 --- a/documentation/01_tutorial/10-9-enemies-and-basic-ai.html.md +++ b/documentation/01_tutorial/10-9-enemies-and-basic-ai.html.md @@ -72,8 +72,10 @@ What would a dungeon game be without enemies? Let's add some! override public function update(elapsed:Float) { + var action = "idle"; if (velocity.x != 0 || velocity.y != 0) { + var action = "walk"; if (Math.abs(velocity.x) > Math.abs(velocity.y)) { if (velocity.x < 0)