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

programming

  1. D

    GameMaker how to control the object foreground

    How can I change the foreground priority of objects during the game with programming commands so that this optical error on the characters (see picture on the bottom) can be avoided? It should somehow be possible to distribute the foreground priority with codelines, so that in this case the...
  2. Marko03970

    Server for multiplayer game

    Hi everyone, I want to make multiplayer game, I want to know what is the best programming language to use to make a server? I don't want to make it in gml, I want to make it in another programming language, and run it on my rented external server. So, what do you suggest me? Thanks
  3. P

    [HELP] Error with my code

    draw_self(); if(mouse_check_button_pressed(mb_left)) (x,y,sprite_width,sprite_height)) draw_circle(x,y,TowerClickedAt,true); What am I doing wrong? please correct the code for me. Error says 'nested function calls not allowed'
  4. I

    Help! Errors drawing text in RPG Combat System

    Help! Hey guys, so, this is going to be a lot of code to look at, but, if you have time can you tell me what I'm doing wrong here? I'm trying to make things update the EnemyHealthDisplay and PlayerHealthDisplay once attacks complete. I'm not sure if attacks are just not compkleting...
  5. P

    [HELP] I want to replace an object with another when clicked at.

    I made a script: when I click at the selected object it replaces it with another object. However, It doesnt work and I am a complete beginner at GML. Can you please explain what I'm doing wrong and show me exactly? Script: if mouse_check_button(mb_left) { if position_meeting(mouse_x...
  6. I

    GameMaker How do I accomplish this?

    Ive been trying to figure out how to spawn a ball in, then it starts moveing back and forth on the x axis from like 10 to 800 and I want it to stop and physics to start when the space bar is pressed and the ball (obj) will drop. Any help??? Im using GML code. On the 2nd game engine.
  7. M

    How to deal with the lack of classes prior to 2.3 and lightweight objects

    I see that "lightweight objects" and other essentials are coming to GML in the next major point release and I'm I'm really looking forward to it. However, I'm writing projects right now and need to live with what we currently have (FWIW I don't think GML is particularly bad but I'm excited...
  8. josyanf1

    GameMaker Heat waves effect [SOLVED]

    Hello everyone! In arcade games I have seen that many use this technique of drawing waves with a sprite to give the sensation of heat / fire. Do you know what this effect is really called? Could you give me a hand to recreate it? Thanks in advance, regards!
  9. H

    Searching for Criticism On Noob Game

    Hello! Everything about my noob game, including written out code, is in the google doc link. Its a few pages of stuff, so I figured I'd put it somewhere other than this tiny thread box... Any advice is appreciated. Thanks...
  10. P

    GameMaker Drag an object along a branching path

    (I'm new to these forums, and to GMS2 in general, so if there is anything wrong with this post let me know!) I've been trying to make a little minigame where you have to shift gears when prompted (like in a car). I want to be able to click and drag the handle along the paths towards the...
  11. H

    GML Locked Circular Rotation

    Hello all! I've made a simple spaceship that moves in the direction it's facing, how would I get another object to rotate around the spaceship based off of it's direction? For example, if I wanted a engine on the back of my spaceship to rotate around it on x and y based off of the direction the...
  12. C

    Problem with mp_grid

    Hello, I've started with make a point and click game, but I have problem with code functions which allow the player to move avoiding objects as desks or walls. I found topics with mp_grid but not sure how it works. Below my code. My objRay (main character) Create event: x = 1320; y = 928...
  13. E

    Character Movement Problems

    I have been working on an action platformer game but my movements do not behave as I want them to. When move the cursor the object mousechecker moves with it and with that being checked my charachter's image_xscale gets set. However when the image_xscale gets changed character moves 5 to 10...
  14. S

    GML [SOLVED] Collision_Rectangle not working properly

    Hey everyone! I'm having a problem with the collision_rectangle function in game maker where it's not registering any collisions. The picture provided is an example of what I am using it for. The Orange square will represent the object calling the collision code. The white/yellow/red box is the...
  15. P

    GameMaker Character is colliding with nothing?

    Not sure if this is the right place to post this, but i've just started learning game maker and have run into an issue i have no idea how to fix, my character seems to be offset to the stage and the actual hit box locations of the walls are offset so it looks like they run into nothing or that...
  16. R

    Need help with fixing player problem

    I'm still noobish with GMS2 & currently having this problem with my platform https://imgur.com/8TtLNgO I have a key/lock system set up, but when the player touches both key & lock it splits the character into 2. I'm aware of the character splitting because of the transition doors having...
  17. jonahrobot

    Legacy GM Audio is swapped... please help

    One audio file is playing instead of another... Backstory: For the last year I have been working on a game using the new Audio Engine and have racked up a lot of sound files. Today I added 3 new sound files and then everything went wrong. I ran the game and some sounds were swapped. The main...
  18. darijs1

    GML Drawing multiple lines within a certain area.

    Basically, im trying to make very simple grass, from single lines (draw_line). The problem is, i have 1 piece of grass ready to go, but i want as many as an "ammount" variable would say. To explain more simply and easy to understand, i have the draw event saying "draw_line(x,y,xx,yy)" now how...
  19. David Chen

    GameMaker Referencing arrays within arrays

    Say I had an array in a loop: for (ii=0;ii<5;ii++){ msg[ii]=array1; } where global.msg would be a 1D array like: array1= ["hello", "world","more text!"] How would you reference specifically array1[0] in the loops? You can't do msg[ii][0] as this syntax doesn't work in GMS:2 but this is what...
  20. M

    Controller Not Recognized

    Hi. I have an issue connecting the Nintendo Switch Pro Controller to my game. This specific issue arises only when I connect it using a universal object that is created before everything else, where the game refuses to recognize it exists. When I place the exact same code in the get_input event...
Top