Skip to content

Instantly share code, notes, and snippets.

@teukstrid
Created May 13, 2018 19:36
Show Gist options
  • Save teukstrid/cae5a98f82f6b1b9041d7cfdcd336837 to your computer and use it in GitHub Desktop.
Save teukstrid/cae5a98f82f6b1b9041d7cfdcd336837 to your computer and use it in GitHub Desktop.
User Event 1 - Sword State
/// @description Sword State
image_speed = .8;
if animation_hit_frame(1)
{
var _angle = direction_facing*90;
var _life = 3;
var _damage = 1;
var _knockback = 8;
create_hitbox(s_sword_hitbox, x, y,_angle , _life, [], _damage, _knockback)
}
if animation_hit_frame(image_number - 1)
{
state_ = player.move;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment