Skip to content

Commit

Permalink
Tweaked the sword kitty so if you park yourself above it and it spins…
Browse files Browse the repository at this point in the history
… in place for about 8 revolutions, it'll suddenly hop upwards to break out of the loop (and also immediately threaten the player).
  • Loading branch information
rkettering committed Apr 15, 2014
1 parent 277ace9 commit 9744421
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/objects/enemies/milgramen/kitty_sword.cfg
Expand Up @@ -81,7 +81,10 @@ on_end_hurt_anim: "animation('stand')",

#-------------------------- spin attack handling --------------------------#
on_end_spin_attack_anim: "if(_spin_counter > 0, [add(_spin_counter, -1),animation('spin_attack')],
if(lib.math.length(me,level.player) < 200, animation('spin_attack'),
if(lib.math.length(me,level.player) < 200,
if(_spin_counter < -3,
[set(_spin_counter, 0), animation('spin_attack'), set(velocity_y, -2000)],
[add(_spin_counter, -1), animation('spin_attack')]),
[animation('leave_spin_attack'), set(_spin_counter, 6), set(_can_attack_at, cycle+50)]))",
on_end_enter_spin_attack_anim: "animation('spin_attack')",
on_end_leave_spin_attack_anim: "animation('walk')",
Expand Down

0 comments on commit 9744421

Please sign in to comment.