Questions tagged [game-maker]

Game Maker is a cross-platform game creation tool made by YoYo Games mostly used to develop 2D video games.

Filter by
Sorted by
Tagged with
1
vote
1answer
105 views

Variable not set before reading it error in GameMaker Studio 2

I am following along with a guide. I'm trying to reference code from an instance in my room, but whenever I try to run the script I get this error: ERROR in action number 1 of Create Event for object ...
0
votes
0answers
33 views

My player won't move

My player sprite won't move if use the AD keys or the arrow keys. If I try to use them then the sprite will stretch and won't move at all. But if I try to jump before I press the D or left and right ...
0
votes
1answer
37 views

Problem when importing color in hexadecimal format from an ini file

In my game I can import a color correctly when it is in the "engine format". Example ("color.ini"): ...
0
votes
1answer
46 views

How to access the raw memory of d3d model in game maker?

I am using the d3d model creation functionality in Game Maker. I also use dlls and I want to be able to modify a 3D model (change uv values) without recreating a model. Is there a way to locate the ...
0
votes
0answers
10 views

Image of the room appearing incorrectly for no apparent reason

In the game, when I call the room (room_Corrida) from the room of the selection menu, it was for that to appear: It turns out this is how the room appears: The effect is as if it had a white ...
0
votes
1answer
40 views

Android Build Failing Game Maker Studio 1.4

In Game Maker Studio 1.4 I'm trying to export my game to Android API 29. Whenever I start to compile, the build fails because the API 28 support library is too low for the Target API 29. I have the ...
0
votes
1answer
24 views

Score won't save to Android in Game Maker Studio 1.4

I have oController as the first object to run when the game is opened. In oController's Game Start event I have the following code: ...
-1
votes
1answer
40 views

Run n' Gun game: Fixating the gun's angle

I am trying to have the gun stick to facing the left or right when the player isn't pressing any of the arrow keys. For instance, if the player is aiming diagonally up-left, then when the player lets ...
0
votes
1answer
25 views

When updating app from Google Play will the app data be deleted? [closed]

My question is pretty simple. I developed a game, uploaded it on the store. In order to keep player level record and UI prefs it writes an ini file. When the next update is up on the store and the ...
0
votes
0answers
37 views

Game Maker - Raycasting from camera in orthographic projection

I have been trying to figure out how to click on 3D objects in Game Maker Studio 2. I am using an orthographic projection. I know the basic idea is to calculate a ray that comes from the camera ...
0
votes
0answers
30 views

Game Maker - Selecting tiles in an isometric grid

I have implemented an isometric grid with rotation in 2 directions in Game Maker. I did this by first calculating the points of the grid in 3D space and then converting them to 2D points through ...
0
votes
0answers
24 views

Creating Complex Collision Shapes in GMS2

I'm pretty new to Game Maker Studio 2 and I've hit a wall in programming with their built-in physics engine. I created a irregularly shaped object and I want to modify the collision shape so that it ...
0
votes
0answers
37 views

(Gamemaker) SAT collision works, but need help with resolving collision that involves contact points

There are a lot of SAT collision tutorials for various programming languages, but so few for Gamemaker it's astonishing. Right now the collision detection works, albeit only using boxes. However, ...
0
votes
1answer
59 views

How do I get my team NPC to follow the player? | Game Maker Studio

I would like to have 4 teammate NPC's that would follow behind the Player. First off, I know how to get the movement and collisions working properly but getting the NPC's to follow the player is where ...
0
votes
1answer
36 views

Enemy gun won't aim properly when collision line is flipped | Game maker studio

When the enemy move's to the right their gun faces right. When they move left the gun will face left as it should. When the player collides with the enemy collision line on the right side, the enemy ...
0
votes
0answers
33 views

How to reverse the movement of the mouse on the X and Y axes?

I would like to know, how to do so that when moving the mouse to the right, it would go to the left and vice versa. I looked for something related on the gamemaker page, but I didn't find what I'm ...
0
votes
0answers
33 views

How do I get the id of an object that created a point in a path?

I'm making a rollercoaster tycoon type game. As the title says, I need to get the id of an object that created a path point. These points are currently greated by the rail pieces. I need this because ...
-2
votes
1answer
86 views

Are there functions in GML?

I am trying to learn how to use GML to solve one of my previous prolems, as well as everything I have heard has said it is better to just learn it over DnD. As I have only ever programmed in python I ...
1
vote
1answer
191 views

Someone downloaded my game but it failed on Game Start due to code that doesnt exist

As stated in the title, they get the following error: ...
0
votes
0answers
39 views

How to make a path without collisions regardless of the size of the enemy/grid?

I am making a game where I have a player and enemies that depending on the distance, follow the player. For enemies to follow the player, the map was marked with a grid. When the player approaches ...
0
votes
0answers
53 views

How to predict the lap time?

I have a racing game. In this game the cars run on a circuit and at the end of this circuit the lap time is calculated. The lap time and estimated lap time are calculated as follows: ...
1
vote
0answers
51 views

How to extend GameMaker Studio's IDE editor, like in Unity?

Unity allows you to create custom inspectors, custom editor windows and custom property drawers. Is there a counterpart of this in GameMaker Studio 2.x or isn't it possible yet?
1
vote
1answer
109 views

What type does one cast the result of “get_function_address” to in order to call the function within a C++ DLL?

According to the game maker documentation for dll manipulation: get_function_address('function_name') Returns the address of a GameMaker function. This can be passed to DLL's so the can call ...
4
votes
3answers
222 views

How to model chess knight movement in GameMaker?

I am making a chess game in GameMaker, and I have the basic movement down for all of the other pieces except for the knight. I am using a system where I have an if statement that checks if the mouse ...
0
votes
0answers
46 views

How to make hundreds of objects do not disturb the game?

I am playing a game where I want to display countless tickets. At the beginning of the game this object/ticket is replicated 10 times. Create Event: ...
0
votes
1answer
122 views

How to change application surface size without changing view size? (GMS2)

I am working on a pixel art project in GameMaker 2 with native resolution 428x240. In order to enable "subpixel" rending, I am trying to increase the resolution of my ...
0
votes
0answers
25 views

How to avoid camera jerkiness when using integer-based movement with a remainder?

I am experimenting with a low-res project in GameMaker 2. To preserve the pixel art and prevent distortion, I have my movement code set up to only move my sprites in integer intervals. Basically, ...
0
votes
0answers
23 views

How can I change gradle version for api 27?

I get this error message: ...
0
votes
1answer
27 views

How to draw a line based on an angle with a defined size?

I have a game where the player shoots a projectile based on the mouse direction when clicking, which travels 500 pixels. I wish I could draw a line exactly where the projectile will be destroyed. ...
0
votes
0answers
32 views

Cars stutter by completing each lap

When I use the function path_start like this: path_start(circuit,velocity,path_action_continue,true); When completing each lap the cars kind of jump (I don't know ...
0
votes
1answer
35 views

Formula for calculating time difference regardless of speed

See the following situation: The first car has a speed of 10 pixels per second and completes one lap in a circuit in 84 seconds. I want the ...
0
votes
1answer
59 views

Way to Round Numbers

I have it when the player clicks the mouse they can move the peice aoround the board. I am trying to have the chess pieces snap to a grid after the mouse has been released. Is there any way to round ...
0
votes
1answer
20 views

Fill with Transparency in Built-In Sprite Editor

When I imported an image for a sprite, I realized it had a white background. I went into the built-in sprite editor to remove it. I tried using fill as there was a transparent color in the color ...
1
vote
2answers
76 views

How to script sequential events in GameMaker?

I am wondering if there is an elegant way to script sequential events in GameMaker 2. In Godot 3.1, it is very easy to chain events together using yield() and ...
0
votes
2answers
58 views

How to make a more accurate lap time? get_timer() LIMITATION?

In the room there are 22 cars. All cars have a different speed. The cars are numbered from 1 to 22 with the help of the variable carNumber. CODE - obj_Car / Set car speed (Create Event): ...
0
votes
1answer
40 views

How to draw a rectangle with a border pixel over a camera/viewport?

With this code I intended to visually delimit the complete view of the circuit and the two controlled cars: ...
0
votes
1answer
36 views

Way to Get Collision Box Width Gamemaker

I was coding the wall collision system for my game, and I wanted to do it using intersect boundaries instead of checking every step if they are off the screen. When the player crosses the boundary ...
0
votes
1answer
14 views

Problem displaying drawing of a path in camera/viewport

I have an adm object, which draws the path in the room like this (Object ADM - Draw Event): ...
0
votes
1answer
79 views

Simple 2d Movement (Non platformer)

This seems so simple but my searching as failed to find a good result. The idea is that you can move in 360 degrees but you aren't faster when you move in a diagonal direction. I know how to do this ...
0
votes
2answers
54 views

Help for sorting cars that are 1 lap behind the others (latecomers)

Think of 22 cars running in circuit. I can sort them based on the order they reach the finish line. I start to have problems, because over time, the faster cars start to reach the slower cars. ...
0
votes
1answer
44 views

Problems With Opening Room Gamemaker

In Gamemaker, I have a main menu room, and hitting start takes you to the gameplay room. When testing it, it did not take me to the gameplay room. I made it load into the problem room first, and all ...
0
votes
2answers
101 views

How to draw the path with a thicker stroke?

I have a game where objects follow a path that resembles a circuit (f1, nascar, stock car). Using the draw_path function, I can draw the circuit on the game screen: It turns out that dash got too ...
1
vote
2answers
341 views

How to make a vision cone for the enemy in game maker?

I'm making an enemy object where the enemy look for the player when he's going on a patrol I want the vision cone to changes direction corresponding to the sprite.When the sprite turn right,the cone ...
-1
votes
2answers
292 views

(Game Maker Studio)How to make an alarm that starts & loops in the step event?

I'm making an enemy object where the enemy will go on a specific path to patrol.Then he will stop at a certain point to look around for the player. I planned to make him change his sprite direction ...
1
vote
1answer
108 views

How to support more than 4 XInput controllers?

I'm making a multiplayer game in GameMaker Studio 2. The game supports upto 12 controllers, where the first four are XInput controllers. The rest would be DirectInput. If I try playing with 8 Xbox ...
0
votes
1answer
49 views

How to make character not enter the platform when colliding on the side with the platform?

I had a problem with detecting my character's collision with the enemy being detected in 2 ways: side by side when it (character) jumps into the enemy's head. I imagine it to be basic, so I figured ...
0
votes
0answers
44 views

Multiple fireballs gml

I am programming a bossfight in gamemaker, and I want my boss to shoot multiple fireballs simultaneously, but all in a bit of a different direction, a little bit like this, from rogue soul: It (...
3
votes
1answer
86 views

How can I child one sprite to another?

I am a newb at GameMaker. I have a 2D map which you can move around. I want to add pins to the map, such that when the map moves, the pins stay in the same position relative to the map. By default, ...
1
vote
2answers
88 views

How to get the Javascript equivalent of GameMaker's `hspeed` and `vspeed` given only `direction` and `speed`?

I'm using a NodeJS server to control NPC movement in a multiplayer game, and when they get too close to the edge of the room I need to reverse either the horizontal or vertical components of their ...
1
vote
0answers
29 views

Game Maker picking the wrong network adapter for broadcast

In my game I need to get the local network IP of the computer that is running the game, and for that purpose I have the following code: ...

1
2 3 4 5
9