J
Jyrish
Guest
I am at the point where im fleshing out the melee animation for my player and enemys. I have in ....
enemy draw event
draw_self();
if (attacking=true)
{
draw_sprite_ext(spr_attack,image_index,x,y,1.5,1.5,angle-60,image_blend,image_alpha)
}
//this works like i want to draw the attacking animation but i cant get a hit box in there?
all code to determine what animations of enemy, are in the step event
then i have a sprite for a slash attack(spr_attack) that has 5 frames and at position 3 is where i want the hit box to create and then disappear (only once)
Does the hit box need to be an object or can i just call the sprite?
but im not sure how to call the frames of spr_attack in the enemy step event cuz i think when i call image_index it called the enemys animations not the spr_attack being draw in draw event of obj_enemy.
enemy draw event
draw_self();
if (attacking=true)
{
draw_sprite_ext(spr_attack,image_index,x,y,1.5,1.5,angle-60,image_blend,image_alpha)
}
//this works like i want to draw the attacking animation but i cant get a hit box in there?
all code to determine what animations of enemy, are in the step event
then i have a sprite for a slash attack(spr_attack) that has 5 frames and at position 3 is where i want the hit box to create and then disappear (only once)
Does the hit box need to be an object or can i just call the sprite?
but im not sure how to call the frames of spr_attack in the enemy step event cuz i think when i call image_index it called the enemys animations not the spr_attack being draw in draw event of obj_enemy.