Created
May 13, 2018 19:36
-
-
Save teukstrid/cae5a98f82f6b1b9041d7cfdcd336837 to your computer and use it in GitHub Desktop.
User Event 1 - Sword State
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @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