• 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. 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?
  2. 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...
  3. 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...
  4. 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
  5. 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...
  6. 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 =...
  7. 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...
  8. G

    GML Problem with particles.

    I've made a particle system for stars and it works well, the only problem is that it doesn't stop when the room changes/room restarts, the opposite happens, it just keeps generating, so I've also created a stop code but it stops it forever that it doesn't generate. also tell me where do I put...
  9. G

    GML How do I add a delay to shooting.

    I currently made the player can shoot but the problem is the player can shoot rapidly and that will make anyone use auto clicker and it will be like infinite bullets, so what I'm trying to say I wanna know how to add a delay to shooting like a 1-2 seconds delay. Here is my shooting code: Global...
  10. Jatin_AT

    Portfolio - Programming Programmer - Long Term or Part Time Project [ Exp 5+ ] ( Looking for work )

    Hello, I'm a professional Game Developer/Programmer for Game Maker Studio 2 or 2.3 and GameMaker Studio 1.4 with experience of 5+ years. I have mostly created platformers (Metroidvania, Fan-Game, Strategy Puzzle, Beat-em-up). My skillset is big enough for all types of 2D games. Things I don't...
  11. G

    GML Coding error at Options room CC (Creation Code)

    So what I'm trying to do is doing buttons that change screen resolution and everything is ok except one thing at Options room CC, when ever I run the game it sends me that error code log: ___________________________________________...
  12. HerrMoki

    GML SOLVED - (BEGINNER) Setting the player sprites how I want them to be.

    Hey there GM Community! I just started learning programming, followed a few tutorials, written down some stuff and I have a small and probably laughable problem I can't solve. I wanna make a small test game (top down adventure) where the player can move in 8-directions, has 4-walk animations...
  13. D

    GML mouse_check_button not working?

    i'm making an object that reacts when it is clicked following code: if position_meeting(mouse_x,mouse_y,id){ // this works if mouse_check_button(mb_left){ // this doesn't // reaction on click goes here, but it's not relevant (at least i think) } } on click, it's meant to change...
  14. Cartoon Nickname

    GML Been trying to get my Match 3 gems to fall down instead of spawning right in place. (Also need general help making a decent Match 3 game.)

    So, I've slowly been using multiple outdated tutorials on how to craft a Match 3 game for GMS 2 with GML. I'm going for one with a Huniepop feel and whatnot. I've been able to get as far as getting the base game working. Minus the points systems and anything like items and bombs. But right now...
  15. The Major Squadron

    GML Rolling down a hill

    Hello, I'm working on a 2d platformer and have a boulder on top of a hill. I want this boulder to be able to roll down the hill on its own once it detects that the ground under it is at an angle. I think I need to do something with image_angle but I can't get it to work. Video of how it is...
  16. Whitecat3

    GML Easy Stella/Trail/Ghost Dash Effect

    Hi all, I recently coded a "ghost trail" effect for my current project. Before doing it I looked for ideas or tips to do it, but since I couldn't find something that convinced me, I decided to implement it on my own. As a thank you to all the help I have received from this forum I have decided...
  17. S

    GML function issues

    hey I'm just making a small game and I am trying to use functions to make my code neater since I need to call this function multiple times. but when I call the function nothing happens my code looks like this function reload(gunclip,inventory,clipmax) { if (inventory > 0) {...
  18. KasparTheAhv

    SOLVED Having trouble making a frog jump to another objects cordinates.

    Hello. Trying to make a frog which can: 1. visually/smoothly jump to the players x/y cordinate ( NOT SNAP ) 2. does it always with a circular motion [ Imagine the first frog ( on the left ) being the frogs x,y cordinates and the last ( on the right ) being the players cordinates. Here's what...
  19. C

    GML Draw player in draw event not animating sprites

    Hi, I have created a state machine for my player object that switches sprites based on what state the player is in, but it seems the way I have coded the draw event script is causing the sprites to not be animated? I have tried setting the image_speed in the draw event or the step event and a...
  20. T

    GML How to use broadcast messages?

    I have been wondering how broadcast messages work. Can someone teach me?
Top