1. 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){...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. CanOPringles

    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...
  14. Z

    GML image_angle checks randomly stop working mid-game

    Hi, I am currently working on my top down GTA 1 style game, and I have run into an issue. When the player is wanted by police, every 16 - 30 seconds, I want the dispatcher to announce the player's direction. ///Direction Update ///Wanted by police and driving a car if(wanted == true and...

    Legacy GM how to check depth from other object

    hey guys, having a error trying to check the depth from another object, says for an error "unexpected epression" code is below. anyone know why? thanks -EZ if place_meeting (x,y, obj_oilman_2) && with obj_oilman_2 depth = -101; { image_speed = 0.1; }

    Legacy GM problem changing sprite

    hey yall, imhaving a problem with a sprite change and collsion detection my code is down below and was wondering if anyone could help. basiclly the problem is when a drop of oil falls from the ceiling and lands in my players bucket, it should set the my score which is global.throwbucket to += 1...
  17. netoxinaa

    rookie asks for help part IV

    hello everyone and welcome to a new episode of rookie asks for help, i wanted to do a wall object so that it stops the player when collided with it, this wall object I did it as a 1 pixel size so that i can place many in the room the way I want, but when I drag the object to the room, i cant...

    Legacy GM help on moving sprite

    hey yall, i wrote this little bit of code but i need it for 7 sprites instead of only 3 in this case, i assume its a easy fix but i have no idea on how to do it any help is great! Step Event if keyboard_check_pressed(vk_right) and image_index != 2 then image_index += 1 //moves player right if...
  19. netoxinaa

    rookie asks for help part III

    i want to make a small square menu pop in the screen when the user hits enter, i created and object for the menu and i was thinking in addin a "key pressed" event in the player object, but is there a way to place an object in the current room from simple code? or do i need to place it in the...
  20. netoxinaa

    rookie asks for help part II

    hey there, i´m working on a space shooter as my first game and i would like to know how to make an enemy shoot every x seconds. i tried to set an alarm in the enemy´s step event but it wont run it.