switch

  1. Y

    SOLVED Sequence not running in Switch statement

    I created a sequence that overlays the screen and plays an animation. I call the sequence with a script which is placed inside of a switch statement. After some trial and error, I think the issue is possibly due to event order. Perhaps my sequence isn't running because it is waiting for the rest...
  2. Y

    GML Sequence not running

    I have a function that runs a sequence in the middle of switch statement as part of a turn based game. The problem is that if I simply call the function like I would any other function, it does not run. The only way it does run, is if the switch statement goes to the next case. It would seem the...
  3. Samustai

    GameMaker Game Maker Getting Started

    Hello, we're starting development on Game Maker, going to export game on Console platforms (Xbox, PS, Switch). Can someone guide us what do we need to do to make porting on consoles easier and comfortable. Our game is on Gamemaker v2023.8.2.108.
  4. Ozee62

    Nintendo Switch SDK is misconfigured

    Hello, I installed switch SDK on D:\ drive, but GameMaker does not see it:/ Do you know why ?
  5. David Lorenz

    GML Problem with Switch of a Variable that can be set to different Arrays

    Hello, everyone! I have an object that manages a series of Arrays. I use a Function to add points to one of the Arrays: function add_points(target_array_as_string,amount){ with obj_point_system { if completed != 1 { if target_as_string[1][1] = 0 { // If the target Array...
  6. D

    SOLVED Odd issue with switch statements and sprite_index

    Sorry in advance if this post is a little confusing, but this is the best way I can think to describe the issue I'm having. I'm using two state machines in the same object to switch the sprite of the object using sprite_index. However, only one of the two sprite_index statements actually works...
  7. VoxPrincipalis

    SOLVED Switch Case Range

    Buen Thursday Y'all 🤠 Does Game Maker support ranges in a switch case? Some C++ compilers do. Example: switch(ord(char)) { default: return -1; break; case 32: return 0; break; case 194: return 0; break; case 207: return 0; break; case 212: return 0; break; case 252...
  8. J

    Switch Statement with Key_board_check_pressed not working.

    trying to do simple switch code, for some reason (key_board_check_pressed) does not work, but (keyboard_key) does. I want check_pressed over keyboard_key because it goes too fast. Trying to keep everything in the step event. Doesn't work vvv //Step Event switch (keyboard_check_pressed){...
  9. J

    SOLVED How to change beetween states?

    Hello! I need help. I'm a very beginner :) I have a enemy and a player character. I want if the player character hit the enemy head do a animation movement and after finish go to state 2 (walking again). Right now if my character hit the enemy head the enemy is go on a loop so continously...
  10. 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 >=...
  11. P

    GML Visual 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...
  12. 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
  13. 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.
  14. 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
  15. C

    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 =...
  16. 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...
  17. 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...
  18. U

    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...
  19. 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...
  20. S

    GameMaker 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 = [...
Top