D
discocar
Guest
///Kick
//Make sure we are attacking
if(state = "attacking"){
sprite_index = spr_AIKick //Set the sprite animation
image_index = 0 //Make sure we start the animation from the begining
///hitbox
}
if (image_index==4)
{
with (instance_create (x,y,oKickHitbox)) //Create hitbox
{
image_xscale = other.image_xscale; //Create the hitbox in the right direction
}
}
I set it so it should spawn when it hits the frame index 4 and It isn't in the same code above its outside it. I don't understand why its not spawning it? haha Any help would be great. Thanks
//Make sure we are attacking
if(state = "attacking"){
sprite_index = spr_AIKick //Set the sprite animation
image_index = 0 //Make sure we start the animation from the begining
///hitbox
}
if (image_index==4)
{
with (instance_create (x,y,oKickHitbox)) //Create hitbox
{
image_xscale = other.image_xscale; //Create the hitbox in the right direction
}
}
I set it so it should spawn when it hits the frame index 4 and It isn't in the same code above its outside it. I don't understand why its not spawning it? haha Any help would be great. Thanks