if conditions

1. 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...
2. GMS 2.3+ 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...
3. GMS 2 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] =...
4. GMS 2 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
5. 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...
6. Drag And Drop 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: