• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

help

  1. Izac

    GML (SOLVED) Object Problem

    I have an object (objExploderange) , I wrote that in its step event: if object_exists(objPlayer) {x = objPlayer.x y = objPlayer.y} Well, If "objplayer" doesn't exist, The game crashes, Saying this: ERROR in action number 1 of Step Event0 for object objExploderange: Unable to find any...
  2. B

    Need help with alarm and row system.

    I know this isn't the best way of doing this but, I need help creating a system where after 2 seconds it creates a row of blocks and after another two seconds it does it again and moves the previous row down and repeats for infinity. I can't get the alarm to run but when I do get it to run, it...
  3. D

    Windows Help me. My project does not want to compile or work in any way

    Logs: "cmd" /c subst Z: "C:\Users\Albert\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" elapsed time 00:00:00.1271250s for command "cmd" /c subst Z: "C:\Users\Albert\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 09/09/2023 21:51:55 "cmd" /c subst Y...
  4. T

    Instance_find problem

    I want to get a unique identifier for objects in an array using instance_find, however the results are never correct. for context: "Enemies" is an array containing 6 accounts of randomly selected 2 objects, portrayed as variables 14 and 22. ex: Enemies[o] = 14, Enemies[1] = 14, Enemies [2] =...
  5. M

    Car direction variable problem

    I have the following code for the movement of going fowards and backwards in a car: // Variables right = keyboard_check(vk_right) || keyboard_check(ord("D")); left = keyboard_check(vk_left) || keyboard_check(ord("A")); up = keyboard_check(vk_up) || keyboard_check(ord("W")); down =...
  6. M

    Car colision problem

    I have the following code for movement and colision in a car object step event: // Variables right = keyboard_check(vk_right) || keyboard_check(ord("D")); left = keyboard_check(vk_left) || keyboard_check(ord("A")); up = keyboard_check(vk_up) || keyboard_check(ord("W")); down =...
  7. D

    problem with draw event and weapon swapping

    im using the draw event to draw the sprite for my weapons but when i swap them it still uses the sprite for only one of them heres the code for draw event //draw behind if aimDir >= 0 && aimDir < 180 { knight_sword_draw() } //draw the player draw_self(); //draw my weapon if aimDir >=...
  8. D

    When my weapon shoots it crashes

    im doing a weapon swapping feature using the code from peyton burnham top down shooter part 4, but when i try to shoot my weapon sometimes it crashes and says ############################################################################################ ERROR in action number 1 of Step Event0...
  9. N

    Windows Old permanent license lost

    I recently installed the update for GameMaker Studio 2 which adds the Opera GX login support, and I moved over my account however used a new email address. I believe that because of this, although I still have my files, I lost my old license and as such my "Export to Windows, Mac and Ubuntu"...
  10. 2

    steam achievement

    I want to add steam achievement to my game. I never figured this out and would like some help. I want the achievement to be dropped when global.steamachievement_BOZZ is set to true. And yes my game is on steam and its public + ofc have added the achievement via steamworks! Do someone know what I...
  11. PlaqueDoctor

    SOLVED Getting the Instance of a Object INSIDE of the Object

    First of all: Im working currently on a Small Multiplayer Prototype. So i wanna put my Instance of my local Player into a buffer. This part of code is INSIDE of the oPlayer Object because i wanna send the Movement to the other Clients. Here is my question: In normal case for example I create...
  12. M

    Car Colision problem

    I have a game where you control a car, and you set the direction it is pointing with the left and right keys, and with the up key it moves toward that direction. Basically the arrow keys change the direction of the object and the up key sets the object speed to a specific number. I want for it...
  13. R

    GameMaker Help with getting the user to input their name

    I'm new to Gamemaker and trying to figure out how to code a textbox that asks the user an input and then saves that input to a specific variable, so forgive if my understanding is a little limited. The issue is that I'm stuck as to how to draw an instance of my input box (which is part of my...
  14. ReignOnU

    How do you "interrupt" an object's code in GMS?

    Example: You need to create surfaces but you are in the Create Event of an object. So you need to draw a surface but you can't because it is the Create Event. I thought I would be clever so I made a 2nd object, then created that object in the first object's Create Event, then deactivated the...
  15. M

    Rotating the collision of collision_rectangle

    Hi. I'm trying to use the collision_rectangle function to find objects within the view of the player which rotates with the player's movements, but I don't see any way to easily rotate the rectangle generated by the two coordinates we give the function. Is there a way to rotate the detection...
  16. M

    GameMaker (SOLDVED) how i convert string to float?

    Hey guys, this is my ptoblerm: ___________________________________________ ############################################################################################ ERROR in action number 1 of Step Event0 for object obj_player: unable to convert string "" to float at...
  17. Izac

    GML How can i make an enemy flash?

    I want to make this sprite play only once when a bullet collides with the enemy, Then it return to the normal sprite (Normal Sprite)
  18. O

    Multiplayer game not creating link

    Hello there! I hope I'm coming to the right place for help on this... I've been following the official "How to make a multiplayer game with GameMaker" tutorial from the gamemaker site, and it's been going really well so far! Except... I'm on section 'How to invite a friend to mulitplayer' and...
  19. U

    I want to add different types of firing modes but I don't want to ruin the code I had build. (Top Down Shooter)

    So I have been think about this alot actually, and I had already made a code the allows my character to shoot a shotgun and a have a fully automatic guns but I want to add something like a single fire weapon that only shoot 1 bullet per click and also add something like a melee that when the...
  20. W

    SOLVED HELP WITH COLISION ERROR

    Hey guys, I'm a very early beginner i need a detailed and dumb solution for this. This code makes my enemies collide in y direction and teleport to wall, but in x direction everything works properly. I have read some similarly problems but couldn't find a solution for my problem. Some ideia how...
Top