switch

  1. D

    SOLVED Using switch with arrays

    Hello, i'm having a bit of trouble on making my array work with the switch function. I have my direction variables stored in a array in the create event like this: dir = [ direction <= 11.25 || direction >= 348.76, direction >= 11.26 && direction <= 33.75, direction >=...
  2. P

    Drag And Drop Only one instance of the same type is working

    So, first of all, i want to make a lever wich makes spikes move. It all works if only one of these levers is placed in the room. If i add a second one, (or third...) only the one i placed first is working. The levers are connected to certain spikes only, wich is working, too. Maybe someone...
  3. JJampion

    GML on/off button

    hi has anyone an idea how it works that a button switch from on to off like when the button is clicked : new sprite + deactivated music and if its clicked again : old sprite + music is activated again
  4. TomOmNom

    How to make a GUI Switch?

    I was wondering how I would make a switch in the GUI that can be called in an if statement to get its on-off position. I couldn't figure out how to store the on-off position properly.
  5. sinigrimi

    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
  6. Cofefe

    Question - Code Switch Statement Compile Error

    Hi all! So today I thought I'd try something with Switch statements, I figured it wouldn't work but I didn't expect the error I got. All I did was put the "Or" Operator in the cases (||). You can see the code below: ///@description horizontal_tile_collisions() var grounded =...
  7. A

    DLC on Nintendo Switch

    Hello, I have game made with GMS 2.2.3.436 (it is already on Nintendo e-Shop) and now I want to add some DLC to it. Firsty it was meant to be just patch and I more or less know how to achieve that, but I don't know about DLC. Should I release it as patch and somehow check if player have bought...
  8. 2Bad Games

    Windows BRUTAL RAGE - 2D Beat them up - Demo available - XboxOne / Ps4 / Switch / PC

    Hello everybody I'm Tony from 2BAD GAMES, I'm working on my new game BRUTAL RAGE so I would like to show you the game if you have any feedback, questions do not hesitate ! Demo is available on Gamejolt, Indiedb & itchio ! :D DEMO LINKS Gamejolt link InideDB link itch.io link GAMEPLAY BRUTAL...
  9. Ulcius

    Released Talk it Out: Handheld Game for Nintendo Switch

    Hello dudes and dudettes. I am super excited to make this post :) The game I made (in Game Maker obviously) just got released on Nintendo Switch! Wooohooo! This is a guessing game with kind of a twist. You need 2 players to play this game. One knows an item, the other is trying to guess by...
  10. ac585318

    Question - Code Do case statements require curly braces?

    I'm new to GMS2 and am curious... Do case statements require curly braces? I've seen been going through tutorials and some of them are using curly braces in the case statements and some not. I breifly read that apparently in the C programming language they are needed for declaring variables in...
  11. S

    GMS 2 can I put a switch inside of a switch?

    if (daycycle.hours >= 24) { dialouge_choice = irandom(1); switch(relationship_Level){ case 0: switch(dialouge_choice){ case 0: text = ["Hello."]; case 1: text = [...
  12. vdweller

     Switch: Least evil conversion from 1080p (console) to 720p (handheld)

    Alright bros and bras, I could use your thoughts on the following issue: Nintendo Switch supports 720p resolution when in handheld mode and 1080p resolution in console mode. My pixel artsy, no-color-interpolation game originally was designed in a 384x216 resolution. Multiply it by 5 and you...
  13. B

    INI File Size Limit and Compatibility

    Version: Game Maker Studio 2 Full - IDE v2.2.1.375 - Runtime v2.2.1.291 Hello! I'm currently developing a game with a pixel by pixel character creator and need to log every pixels x, position, y position, and color however, I have read that .INI files have a 64KB limit of the data they can...
  14. M

    GMS 2 (HELP) switch statement with range of numbers as a case

    im sorry my english is kinda bad, ill try to explain what i need as simply as i can: i want one of the cases in a switch statement to happen in a multiple situations. i want to write something like this (just as an example), but of course it is not how it would work: switch (anim) { case 1,2,3...
  15. K

    GMS 2 [SOLVED] Random Switch State, Idle - Wander

    Hey everyone, I'm relatively new to game maker but have been watching a lot of tutorials and reading the forums bunch and have been able to solve all of my own problems until now. Basically I have a zombie NPC, that switches between multiple states; idle, wander, alert, attack, etc. I was...
  16. Misu

    The Nintendo Fan Thread! - The Switch Pro!

    Welcome to the magical and whimsical world of the Nintendo. We gather all Nintendo lovers into one single thread to talk about latest Nintendo stuff and other Nostalgic discussions. Care to talk about the Switch and its upcoming games? Go ahead! Love to share some classic memories from NES to...
  17. K12gamer

    Opinion Do you prefer PC / Console Gaming or MOBILE Gaming.

    I borrowed my brother's iPhone yesterday when I went to the barber. Knew I'd be in there a long time and would need something to do (I normally just take books / magazines). I got bored playing mobile games very fast and switched over to watching stuff on Youtube. I like playing games on a PC /...
  18. Dr_Nomz

    GML Using the same button to switch between things?

    Okay, say you have a variable, and it has values of 0 and 1, and you want to switch between them at a moments notice. So you could bind two different keys to get the different results, but what about just one key? Like if it were bound to Q and you hit Q, it would switch between them.
  19. Edwin

    GML [SOLVED] How to check "switch" statement of current code?

    For example, I have variables keyRight, keyLeft, keyUp, keyDown that equals to keyboard_check(vk_...). I need to check them in switch statement like this: switch () { keyRight: x += 2; break; keyLeft: x -= 2; break; keyUp: y += 2; break...
  20. MartinK12

    GML [SOLVED] How can I use object name in switch statement?

    I've created this simple code and depending what kind of object is selected I want to perform different actions on it, but looks like I always get default case. I don’t know where I messed up? Thank You for pointing my mistake :) if mouse_check_button_pressed(mb_left) { instance =...
Top