General Game Maker Language (GML) support. The programming language used in Game Maker and Game Maker: Studio.
Questions tagged [game-maker-language]
125 questions
0
votes
1 answer
Why game does not see the input of the "R" key?
The game does not see the input of the "R" key, I use a
{
if keyboard_check_pressed(ord("R")) && global.died = true{
global.died = false;
room_restart();
}
}
0
votes
1 answer
Gamemaker using a list for things to happen without deleting them
The premise of my problem is I have a boss that goes into different states, for example state.forcefield.
When he is in a state, a queue of functions runs which carry out some actions like a change the state of the player, destroy and create…

user15950867
- 33
- 5
0
votes
1 answer
Get value in variable
Hi, I'm pretty new to gamemaker and I'm trying to set a variable (global.b1) to the first value of "global.level_data". For example, global.b1 will be set to mimic the blue outline of "global.level_data"'s first value, which is 0. Can anyone tell…

Random Account
- 15
- 6
0
votes
1 answer
My http request not working with mailgun api
header = ds_map_create();
header[? "Content-Type"] = "application/json";
header[? "api"] = "My api key that im censoring :)";
json = ds_map_create()
{
json[? "from"] = "mailgun@lapaihui.org";
json[? "to"] = "My email that im also…

Hats OFF
- 1
0
votes
1 answer
Converting a "name" to a real, then convert it back to a string
I've ran into some issues with my current gamemaker project. I've setup a simple "merge" functionality in my game, and I'm trying to increase it's QoL
So what's happening when I'm merging, is this;
var sabatons = instance_place(x, y,…

Amne
- 83
- 11
0
votes
1 answer
draw_set_alpha seems to not work with draw_rectangle
MY GOAL:
I'm trying to draw a transparent black rectangle over the current view.
THE PROBLEM:
No matter what alpha I set, the rectangle is drawn with full opacity.
THINGS THAT I'VE TRIED:
I tried changing the color of the rectangle to make sure…
0
votes
1 answer
Collision GameMaker issue
I'm new to GameMaker and I followed a tutorial by "Let's Learn This Together". I was trying to make collisions for my character, however every time my character bumps into the object, they get stuck and I can't control them anymore. I checked many…

Viv
- 1
0
votes
1 answer
Delayed inputs racing game
i have never used game-maker before, but it seemed pretty easy to use for my school project. I want to make a small racing game, but the car has varying degrees of delay in the controls. The project is for exploring latency. so the delay in the…

nightblen
- 1
- 1
0
votes
1 answer
Click & Drag Mechanism
I need help with GameMaker Studio 2 v2.3.2.556 project.
My clicking & dragging mechanism has two objects: an object called obj_iron that is being dragged, and an object called obj_cursor that is invisible and always follows the mouse. When I use…
0
votes
3 answers
Get x and y 'coordinates' from object speed and direction
I have a player object that controls like the ship in Asteroids, using speed and direction. This object is fixed in the middle of the screen, but can rotate. Movement of this object is a visual illusion as other objects move past it.
I need to get x…

Joseph
- 691
- 4
- 18
0
votes
2 answers
How to invert the sprite position in GameMaker Studio 2 code?
I put this code for my sprite to reverse the position according to its direction but it reverses the position and it looks skinny. How to fix this?
key_left = keyboard_check(ord("A"))
key_right = keyboard_check(ord("D"))
key_jump =…

zMrFake
- 1
0
votes
1 answer
http_request problem in gamemaker studio 2
im trying to do a http request in gamemaker 2, but i dont undersand how it works!
actual code:
var map = ds_map_create();
ds_map_add(map, "Authorization", "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
var url = "https://api.leref.ga/"…
user16361475
0
votes
1 answer
Why my variable is illegal undefined in GML space rocks tutorial?
I'm new to GML and I've just started yesterday. I don't know why "repeat(num1)" in the "spawn_off_camera" didn't work at all and I rechecked it many times but there seems nothing wrong. Can you help me to fix it?
My…

Odain
- 1
- 2
0
votes
1 answer
Unable to Get Bitwise XOR to work in GameMaker 2
I'm trying to implement Zobrist hashing for a chess game and thought I was doing things correctly. However, when I try to apply XOR to a Hash value, it simply changes between 0 (the starting value for the hash) and -2147483648, in spite of…
0
votes
1 answer
collision failing in gamemaker 2.0
Here's my collision code. (I got it from FriendlyCosmonaut but added the debug message for my own benefit):
// COLLISION CHECK
//Horizontal
if (place_meeting(x+moveX,y,obj_solid)){
repeat(abs(moveX)){
…

HighScoreGrrl
- 1
- 1