• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

malformed if statement, pls help!!!

T

Tatum_vt

Guest
hii I'm really new at this, and I wrote a line of code, where I get the error:
Script: PlayerState_Attack_Stab at line 4 : malformed if statement
But I don't see what's wrong, pls help!!

my code:




//Start of the attack
if (sprite_index != sPlayerS);
{
sprite_index = sPlayerS;
image_index = 0;
ds_list_clear (hitByAttack);
}

//Use attack bitbox & check for hits
mask_index =sPlayerSHB;
 
Top