OnLashoc
Member
Ok this is a head scratcher..
So I am having problems with this animation working correctly. I have two different attack animations with same code, one is working, the second is not with the same exact coding. One is of my oPunch animation which isn't working, it has the following code on the Step event:
The second attack animation is a hand with an axe in is called oAxehandswing it is working correctly and has the following code on the Step event:
The sAxeswing1 animation has 8 frames.
The sRpunch animation has 11 frames.
Why will the Axe animation work and do damage to Mr. Hotdog Man but the Punch animation not do damage?
I am baffled, any help would be appreciated.
Onnie
So I am having problems with this animation working correctly. I have two different attack animations with same code, one is working, the second is not with the same exact coding. One is of my oPunch animation which isn't working, it has the following code on the Step event:
Code:
/// @description
if (sprite_index == sRpunch && image_index = image_number -11)
{
audio_play_sound(snWoosh1,1,0);
}
//audio_play_sound(snRHook,0,false);
if instance_exists(oEnMaddog) && image_index == 4
{
audio_play_sound(snRHook,0,false);
oEnemyhealth.maddogHealth -= 50;
}
Code:
/// @description
if (sprite_index == sAxeswing1 && image_index = image_number -6)
{
audio_play_sound(snWoosh1,1,0);
}
//audio_play_sound(snRHook,0,false);
if instance_exists(oEnMaddog) && image_index == 4
{
audio_play_sound(snRHook,0,false);
oEnemyhealth.maddogHealth -= 50;
}
The sAxeswing1 animation has 8 frames.
The sRpunch animation has 11 frames.
Why will the Axe animation work and do damage to Mr. Hotdog Man but the Punch animation not do damage?
I am baffled, any help would be appreciated.
Onnie