(y-hotspot 9)
(images "shared/bigtux/arms-stand-right-0.png"))
- (action
- (name "idle-left")
- (x-hotspot 6)
- (y-hotspot 8)
- (images "shared/bigtux/arms-stand-left-0.png"))
-
- (action
- (name "idle-right")
- (x-hotspot 6)
- (y-hotspot 8)
- (images "shared/bigtux/arms-stand-right-0.png"))
-
; Grabbing is arms specific!
(action
(name "grab-left")
(name "buttjump-right")
(x-hotspot 5)
(y-hotspot 9)
- (images "shared/bigtux/body-stand-right-0.png"))
-
- (action
- (name "idle-left")
- (x-hotspot 6)
- (y-hotspot 8)
- (images "shared/bigtux/body-stand-left-0.png"))
-
- (action
- (name "idle-right")
- (x-hotspot 6)
- (y-hotspot 8)
(images "shared/bigtux/body-stand-right-0.png")))
;; Big Tux Feet
(name "buttjump-right")
(x-hotspot 5)
(y-hotspot 9)
- (images "shared/bigtux/feet-buttjump-right-0.png"))
-
-
- (action
- (name "idle-left")
- (x-hotspot 6)
- (y-hotspot 8)
- (images "shared/bigtux/feet-stand-left-0.png"))
-
- (action
- (name "idle-right")
- (x-hotspot 6)
- (y-hotspot 8)
- (images "shared/bigtux/feet-stand-right-0.png")))
+ (images "shared/bigtux/feet-buttjump-right-0.png")))
; End of Big Tux (no power) sprite
(action
(name "idle-left")
+ (fps 1.0)
(x-hotspot 6)
(y-hotspot 8)
(images "shared/bigtux/head-idle-blink-left-0.png"
(action
(name "idle-right")
+ (fps 1.0)
(x-hotspot 6)
(y-hotspot 8)
(images "shared/bigtux/head-idle-blink-right-0.png"
}
}
}
-/*
+
if(idle_timer.get_left() < 0)
{
if (dir == RIGHT)
{
- tux_body->set_action("idle-right");
- tux_body->one_time_animation();
+ tux_body->head->set_action("idle-right");
+ tux_body->head->start_animation(1);
}
else
{
- tux_body->set_action("idle-left");
- tux_body->one_time_animation();
+ tux_body->head->set_action("idle-right");
+ tux_body->head->start_animation(1);
}
idle_timer.start(IDLE_TIME);
}
-*/
+
// Tux is holding something
if ((holding_something && physic.get_velocity_y() == 0) ||
shooting_timer.check() && !duck)