1. A

    AND (&&) operator condition limit?

    Hi all. This sounds a noob question but I hope you can give your insights. I am using the AND (&&) operator and usually it only accepts until 4 statements for example: if (condition1) && (condition2) && (condition3) && (condition4) { //do something } Out of curiosity I tried exceeding 4...
  2. netoxinaa

    SOLVED Image index toggle

    Hello, I have this Flame object with of course a Flame sprite which I want first to start animating. Then when it reaches to the last frame, I want the object to toggle between the last 2 frames for some seconds. I have the following code in the step event, but it seems like it never enters into...
  3. TreysterGames

    This is still happening :(

    Come on man. I was just trying to make a game, but whenever I import a sprite this happens! I restarted my PC uninstalled and re-installed GMS2, and this is still occurring! I don't understand, and any feedback would be helpful! I'm sure if its the file size or what, but I made these sprites in...
  4. conman06

    Problems with Player colliding with more than one block.

    Ok, so I know that when the Player collides with oWall, it works. But, when I try to collide with oBlock, it does not work. My game just freezes up and I have to end task. :( very disappointing Here is the code for oPlayer (player) in Step: (btw vsp stands for vertical speed) //Vertical...
  5. conman06

    Rooms not working

    I'm trying to program my game to go to the next room after the door animation plays, which is activated when the player presses up arrow. I don't understand why it isn't working.
  6. K

    New to GM studio: What should I do next?šŸ¤”

    Hey! I'm relatively new to Game Maker Studio and I wanna talk about my "game" I'm making. In reality it's just a test so I can get my bearings. I was wonder what direction I should take it in. I wanna make a super simple JRPG to start and then continue making small projects from there. I've...
  7. kureoni

    walking animations mouse directioned topdown

    im not being able to use the sprite_index to change the sprite animation based on the position of the cursor on the y axis (when the mouse is above the character, we should be able to see him by his back, and when the mouse is under the character, it should be the other way around) any ideas?
  8. netoxinaa

    SOLVED changing a color with a variable

    hello, I'm trying to draw multiple rectangles (each with a diferent color) on screen, one below the other, and I'm using the make_color_rgb() function to change the color by adding a variable as argument. I have the following code in the draw event: var i = 0; while (i != numberRectangles){...
  9. BigCat

    SOLVED Room Wrap & Physics

    Building a game with flappy bird style physics. IE: Each spacebar press causes a single flap. If the left key is held when a flap occurs, the instance adds momentum at a 135 degree angle. Or, if holding the right key - a single flap adds momentum at a 45 degree angle. With gravity turned...
  10. Michael Franklin

    Player not moving

    My character does not move when I run the program. I only have a step event: //input left = keyboard_check(ord("A")); right = keyboard_check(ord("D")); jump = keyboard_check_pressed(vk_space); //Movement var move = right - left; hsp = move * walksp; vsp = vsp + grv; //Horrizontal collision...
  11. A

    [Solved] [Noob] player direction

    this goes back to another post made by teamrocketboyz where he asked to face his character in the direction of the mouse. what he wanted was to face in all directions however i would like it in 2 directions Left and Right. i dont know of any functions that check weather the mouse is on the right...
  12. N

    Windows [SOLVED] make enemy go towards me only at certain distance?

    working on this same game found a enemy code a while back and used it and it works fine! not complex at all the enemy comes at me nothing else to it, but I want the enemy to only chase the player only after it gets so close (~10 blocks away) i typed this in: if(point_distance(obj_player.x...
  13. A

    Windows Help with fullscreen stuff!

    Hi! I'm making my first game ever and it will be shown at an art exhibition, here in Finland. Is there anyway to make sure, that player can't leave the game when it's in fullscreen (the game will be played on windows 10) I was wondering that can I disable windows own shortcuts, like alt + f4...
  14. T

    GMS 2 Issues with paths

    Very new to GMS as a whole, just completed the DnD breakout tutorial. Decided I'd stick with that game a little longer to practice some stuff, and worked on adding new powerups. The one I'm currently working on is supposed to make the bat move slightly upwards in a smooth motion, then return...
  15. bleeze

    Need some help with enums

    So i've made a 2d array with enum variables for my items in my game. One of the enums is for amount, which tracks how many you have of each item. The problem is when i remove an item, with the simple code: itemdef [ itemtype, itemprop.amount ] - = 1; It jumps straigth to -1, even if you have...
  16. Z

    Legacy GM [Solved] Game decided to break for no reason

    Hi, I've spent a few months on and off working on a game, and I decided to edit it today for the first time in a month. I haven't touched it since the last time I worked on it, and no one else has either. So something caused the car object to break. Everything else is fine, the player...
  17. Z

    Legacy GM Help with 3D sounds?

    Hi, I want to make it so that sounds like car engines and gun shots in my top down game can only be heard from a certain distance away, and have them fade out as the object making the sound gets farther away. I've been watching videos and reading things, but I don't get it. Maybe they're not...
  18. V

    Is this Game Design possible with GameMaker?

    Hello, IĀ“m new here and I am looking for a possibility to develop an easy hands on prototype for my game idea. ItĀ“s a football manager and as I have no experience in coding I thought visual scripting would be nice. The thing is, a football manager consist basically of interaction with UI...
  19. J

    Error : The selected Architecture options do not support this device. Please add Arm64

    So I just got the mobile module for game maker studio 2, and I was following the directions to get it all setup for android development. I installed the jdk, the correct sdk's (I hope) and such. I went on my phone and in the developer settings I enabled usb debugging. I added the device as the...
  20. C

    Anyone willing to teach a complete n00b in 1.4.?

    I happen to be inspired by Dr.m64's work on AM2R, and while i have tried my hand in coding in GM about a year ago, i followed an outdated tutorial, (HeartBeasts tutorial) ran into in error, didn't get a response from anyone in the comments, and lost interest for a while. Well, i want to learn...