• 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

  1. K

    Malformed if statement for full screen and problems with script

    I'm have some issues involving an if statement in an object that I'm using to fullscreen my game and involving a script. This code will essentially check that if you press the f key, you are also holding the ctrl key as well. This would help with some issues with putting my game in full screen...
  2. T

    malformed if statement, pls help!!!

    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...
  3. D

    Why is this a malformed if function?

    if (stamina > 0){ stamina += 0.01; if (keyboard_check(vk_space)){ hspeed *= 2; stamina -= 1; } }else{ if hspeed = 0;{ stamina += .01; } } When I try to run this it says there is a malformed if statement here. Comparing it to the rest of the code I've...
  4. M

    [Solved] Game can't run Malformed if statement

    hello i am making a game in gm studio 1.4 and I have this this in it if(place_meeting(x,y,obj_bulletleft)); and whenever the game trys to run it says malformed if statement and says its this line please help
Top