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

gms 2

  1. K

    GameMaker How do I detect where an object is moving? (SOLVED)

    I have an "enemy" object with a point direction set torwards the player and I want to change the sprites attached to the object depending on if the object is moving up, left, down, et cetera. How would I detect this with the general direction it's moving isn't set on anything?
  2. Zabicka

    GameMaker Enemy jumping over walls [SOLVED]

    Hello, so I have this Enemy and I want for that Enemy to jump over walls. I tried using this code: // Jump over walls if (place_meeting(x, y + 1, obj_wall) { if (place_meeting(x + 32 * dir, y, obj_wall)) { vspd = -5.5; } } But it works for every wall (every height of the...
  3. F

    GML Scene slow loading causing system not to find object

    See I'm working on a RPG was working on the battle system. As the title suggests the scene is actually loading in milli-seconds but function called in micro-seconds so the point is that the title might not be so APPROPRIATE to the discussion. My script: ///@desc battle_enemy ///@arg name...
  4. Kiwi

    GameMaker Special characters in a string?

    I'm fairly new to GML, so this question may sound a little nooby. It's also my first post! :) So I've made a typer object which types out a string, letter by letter, which works fine. I've also made it so that when it detects a certain character, it does some kind of action. Like pausing or...
  5. M

    GameMaker [Please Help] Object Persistence Issues and Overlap Issues

    Hello! I'm fairly new to programming so try to bear with me I'm still learning... and yet I'm the lead programmer of a project in which we have to create an entire video game from scratch... needless to say I need some help. So the game is a top down, pixel rpg, and I have the player object on...
  6. T

    GameMaker [SOLVED] Google Play Services - SHA1 ? Android / GMS2

    Hello, I found this rather new article about how to create the Google play Login. https://help.yoyogames.com/hc/en-us/articles/360004274212 I created it this way, but can not get a login to work. I saw some posts about a SHA1 (which I get from Google and don't know where or IF (!) to place in...
  7. F

    GameMaker Get Local Vertex Position in Vertex Shader

    Heya! When using a shader to modify how simple sprites are drawn, is it possible to find the local coordinates of each vertex within the vertex shader itself without relying on user defined uniforms? Essentially I want to find the vertex coordinates as they appear below: (finding values...
  8. O

    GameMaker Collision for 8 directional movement help.

    I am basically using the code from a tutorial from the friendly cosmonaut for the movement but once I put it in the collision physics broke and I can't figure out how to fix it. Create n_spd = 3; r_spd = 6; spd = n_spd; globalvar movestop; movestop = false; Step if movestop = false {...
  9. M

    Discussion Solid should be really solid without checking in code!

    Hello, the checkbox "solid" is not implemented consistently enough for me. If I click on the box "solid", then it should also be the case that I cannot go through fixed objects without explicitly querying this (with "place_meeting" and the "move_ ..." commands). If you don't check the box, you...
  10. T

    VK_Check and VK_Check_Pressed Not detecting some Inputs

    Hi all, I'm working on a co-op game right now and I want both of my characters to have 8 way movement. In most cases this is fine, but I noticed that when I try to hold down + right or down + left with both characters at the same time the VK_Check functions do not pick up my left or right...
  11. T

    [Solved] Possible to disable "Turbo" on gamepad controllers?

    Hey, I kind of fear the answer, but I thought I'd ask anyway. So is there a way to disable "turbo mode" on gamepads that have them? My button-mashing game could be very broken if someone would use one of those. Oh, and if definately not possible, I will just use alarm between taps, but if...
  12. T

    Debugging FPS on a potatoe

    I have a couple questions about debugging values. The computer I use is an old potatoe with onboard graphics. I don't think it's even capable of refreshing my monitor 60 times a second. But say I want my game to still run at 60 fps if possible, so I set game speed to 60 in the parameters, but...
  13. O

    GameMaker how to have a keyboard_check_pressed function apply to only 1 thing at a time

    This is a bug that I can't find a solution to, when I have let's say keyboard_check_pressed(ord("E")) being used as the button to talk to an npc but also to end the dialog box it just triggers the npc again and I think it's because when the var to tell the button to only do the one thing...
  14. O

    GameMaker is there a way to hold a variable holding a value and not the value itself.

    Is there any way that I can have another variable just hold another var as an empty var. I = 2; hold = noone; hold0 = noone; if keyboard_pressed_check(ord("N")) { hold = I hold0 = I(but not it's value just the I as an empty var) }
  15. P

    GameMaker Generating multiple ds_grids and stringing them together visually

    I'm trying to create an infinite world using chunks. Currently, I'm using a noise function to generate terrain on a ds_grid that is the same size as the room. It looks like this: Now I'm trying to have the world generate in 16 by 16 chunks so I can make the game infinite. My plan was to...
  16. O

    GameMaker need help with health bar

    I want to make it so that as hp goes down the health bar gets shorter but when I tried to make that happen it reduced the image from the left and right into the center. Is there a way to anchor the left side of this sprite so the it will reduce from right to left.
  17. O

    GameMaker Stuck on a problem with character display on inventory screen.

    I'm trying to make it so that if a character has joined, the game will check an array and place that new character into the lowest number on the array. these are to check if the character has joined yet or not. global.CRjoined = false; global.CMjoined = false; global.CLjoined = True...
  18. X

    GameMaker enemy code isn't a constant?

    i'm trying to make enemy code (i'm using Shawn spalding's tutorial for melee attacks) but when i try to star the game it says the enemy state should be constant. but i can't make it constant because i'm confused. switch (state) { case ENEMYSTATE.FREE: EnemyState_Free(); break; case...
  19. B

    Android Armv5 error?

    Hello, Thank you for your time, this might be a stupid problem but I can't find it on this forum though with the search option. So, I just upgraded to GMS 2 today, Mobile edition. I imported a project to it, from 1.4 that I was working on and tried running it, and got the following error...
  20. P

    GameMaker [SOLVED] Can I set the size of a ds_list without a for loop?

    I want to make a ds_list that is n values long. Can I do this in GML without using a for loop?
Top