From: Marek Moeckel Date: Fri, 26 Nov 2004 17:08:53 +0000 (+0000) Subject: small fixes (timing and animation) on nolok X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=763454f90866bd4e7db95e5884c48a25d6b9bda1;p=supertux.git small fixes (timing and animation) on nolok SVN-Revision: 2204 --- diff --git a/src/badguy/nolok_01.cpp b/src/badguy/nolok_01.cpp index 1090d972d..16214aa3a 100644 --- a/src/badguy/nolok_01.cpp +++ b/src/badguy/nolok_01.cpp @@ -6,7 +6,7 @@ #define WALK_TIME 2.5 #define SHOOT_TIME 0.4 -#define JUMP_TIME 0.3 +#define JUMP_TIME 0.5 static const float WALKSPEED = 90; @@ -55,6 +55,7 @@ Nolok_01::active_action(float elapsed_time) switch (action) { case WALKING: { + sprite->set_action("jump"); physic.set_velocity_y(700); action = JUMPING; action_timer.start(JUMP_TIME);