• 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!

gml

  1. JesusOnExtasy

    SOLVED Professional Inventory System [ Buy items + Sort items + Shop system + Character Equip ]

    I completely rewrote my inventory system. thanks to everyone who helped in solving some problems in the code. [ Finally I finished my inventory which works properly and as it should. I understood one thing, if you need something, then it's up to you. ]
  2. yarrow

    GameMaker GML live rooms and tilemap_get_at_pixel issue

    Hi there, I finally added GMLive to my project and decided to give the live rooms feature a try after watching Shaun Spalding's tutorial on the subject, and the room is indeed hot reloading on change (wow!) but I'm getting a tilemap_get_at_pixel() - couldn't find specified tilemap error, and my...
  3. flyinian

    Development (Solved)How can I assign more than one object to a function like collision_line_list w/o using parents/inheritance?

    Am I able to assign more than two objects with in the object field of the collision_line_list with out using parents or inheritance? If so, what are my options? Thank you.
  4. D

    Help with draw_sprite

    Hello, I was trying to make it possible to interact with a bed in my game and I'm having trouble. Disclaimer that this code was just me testing out and it's not really finished. This code is in the collision event with the bed but I have it in the draw event for the dialogue box too. I...
  5. Tangerine

    GameMaker draw_sprite_pos at origin of the sprite?

    How can I draw a sprite using draw_sprite_pos at the origin center of the sprite? Also I would like to stretch it using imagexscale and imageyscale and being relative to the origin center of the sprite. Does anyone know the math for doing something like that?
  6. Greenousity

    GML Making an object appear at the centre of the viewport

    Hello, I'm making a RPG game and when a player is near an npc and when they click enter game sends the player to a room that has an object in the middle ,without the player object. But I want to display the object in the middle of the players hud and when they press enter again it should...
  7. R

    GML Why is this piece of code necessary?

    So I was following through a tutorial about how to make a character jump and I have a question. Here are the code I've written with the tutorial which successfully make a character jump: right_key = keyboard_check(vk_right); left_key = keyboard_check(vk_left); jump_key_pressed =...
  8. C

    SOLVED Can't change cursor.

    So I did a bunch of code to change the cursor this should work but it doesn't. By the way, this is my code: window_set_cursor(cr_none) cursor_sprite = pointer
  9. Devilwerg

    SOLVED How to control the sound in "sequences"?

    Hello! Help please! I created a video scene using "sequences". And suddenly I found that I did not understand how to control the sound level in the sequence "from the outside". I'm using a global variable to set the sound volume in the game. So, how can I bind this variable to the audio tracks...
  10. The Major Squadron

    GML Dust particles

    Hello, I'm working on a 2d platformer where I want the player to have dust particles to emit when they walk and land. I've followed varioud tutorials including the official on by yoyogames but all of them either don't work or are out of date. Any help is highly appreciated!
  11. P

    GML Asset_Get_Index for Variables

    Hi, is there a variation of asset_get_index for Variables? Thanks in advance!
  12. The Major Squadron

    SOLVED Reloading box positions in room

    Hello, I have a platformer where I wanna be able to press a button (for example R) and have the current room reset to its original state. I have followed Shaun Spaldings tutorial and have his exact code already, I just need some help with loading box positions. The issue is that my rooms are...
  13. MSquirrel

    GameMaker Frame Rate Struggles

    I have a very small game as of right now. Only a few visible objects and some non-visible manager objects (for example, camera object, item manager object, etc), 3 rooms, and some tile sets. After a few minutes in the game, the frame rate will drop below 60 and the game will become incredibly...
  14. Moo Moo Armageddon

    GML Better way to delete all objects?

    This is the code I normally use for deleting objects if instance_exists(Object){with Object{instance_destroy()}} I have to repeat this code for every object i want to be deleted. Is there a better way?
  15. 27mdmo7sn

    GameMaker network_send_udp_raw does not work and network_send_packet send malformed data

    I tried the whole day in searching and finding solutions, but it does not work at all I have a simple UDP server in NodeJS, and it works well when I send from any UDP client it listen and log no problem.. in game maker that line works well and return the sent packet size, (however looks send...
  16. E

    SOLVED Hazard randomizer guidance/suggestions.

    I have numerous rooms with many hazards of different types: projectiles, fire, acid, blades, etc. I chose not to have a object controller place the hazards in the rooms because they're all specifically placed and it would be quite tedious to get the coordinates of each one for such an approach...
  17. JesusOnExtasy

    Android Darkest Age ( Horror RPG ) [+Download Links+]

    [ New Version 0.153v ( 27.05.23 ) ] Here is my new game project for PC and Android. You can download the game here : Download : https://boosty.to/jaspercrow
  18. Staral

    Confusion on how to create "tables"

    Hi, I have been looking for a way to do this but I cannot seem to find anything. What I am looking to achieve is kind of like a table in a document, only in gml. This concept may be confusing so I will attempt to explain in full detail. | Item ID | Var1 | Var2 | | 1 | int | int...
  19. T

    GML Problem using "with"

    Hi! .... I apologize for the bad writing, I am a Spanish speaker and I do not speak English very well. I have a problem with a code. I try to create a code that allows me to control other objects to give instructions and behave as a "group". n_enemy_0 = instance_number(enemy_0); enemy_0 =...
  20. Staral

    variables not seeming to work with lerp.

    I am attempting to make an item, that when the player goes near, flies towards the player. It also moves to a random position (64x48 pixel range) from the point it was created at. The problem I am having is that I am using lerp for both of these movements, and when I try to lock the movement...
Top