• 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!

if conditions

  1. V

    GML (SOLVED. THANKS)"if variable!=noone" not seems to be reading

    I have this part where game checking if "body" variable is either equals something or noone, but when body turns to noone in other part of code it just not working and keep on script where body supposted to be something. Checking part: if body!=noone { if body.Rarm.dead=true or...
  2. DannyDuque

    Value not changing permanently?

    This time i tried to set up a variable that makes the code do one action if true and another if false. However, it seems what I have is not changing the variable. function CutsceneTextBox(DialogueIDScript) { TextDone = false; if TextDone == false && !instance_exists(oTextBox) {...
  3. Josi Craft's

    Shaders If statement in a shader

    i want to change two spesefik collors out for a nother color how woud you do that like a paint collor shader were a spesefik shade of pink wile be turnde into a blue
  4. D

    SOLVED One of these If Statements is not like the other

    Hello. Ive exhausted every possible solution I can think of, yet I cannot solve this strange issue. Here is my code: // THREE RECTANGLE OBJECT SOLUTION (BROKEN) if(point_in_rectangle(playerobject.x, playerobject.y, x-dr, y-dr, x+dr, y+dr)){ //if(point_in_rectangle(playerobject.x...
  5. S

    Using one button for multiple inputs?

    Hi there! I'm a pretty novice programmer, and I've hit a bit of a snag. There are a few points in my game where I want the same key to have different uses. For example: 1) Using spacebar to make the player jump outside of cutscenes, and advance dialogue inside of cutscenes. 2) Switch between...
  6. Writerstix77

    GameMaker Using called info in a 2D Array

    I have an array that is almost 100 units in height (and 3 in length). Here is just a sampling: TextBox [0,0] = Wrench_obj //The object that is hovered over. TextBox [0,1] = "Wrench: " //Name of item TextBox [0,2] = "A heavy tool used to work pipes." //Description of item. TextBox [1,0] =...
  7. sinigrimi

    GameMaker Need help with "switch"

    Sorry for the stupid question, but I need to know how to make the analogue && (and) from the if system in the "The" Switch "Statement" system. I seriously don’t know. I need to test 2-4 events at once, but I want to do this in the "switch" system
  8. FrostyCat

    GML Why Yin-Yang if Blocks suck

    Why Yin-Yang if Blocks suck GM Version: N/A Target Platform: All Download: N/A Links: N/A Overview This article aims to document the rookie anti-pattern of adjacent opposite if blocks (i.e. if (xyz) { ... } if (!xyz) { ... }), its pitfalls and what to use instead of it. What are Yin-Yang if...
  9. matharoo

    GML Visual Introduction to IF Conditions (DnD) [GMS2]

    GM Version: GMS2 Target Platform: ALL Download: undefined Links: undefined Summary: An introductory tutorial about conditions, for beginners, done in Drag & Drop. Tutorial:
Top