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
0
votes
1answer
53 views

Basis of Estimate (BOE) for Freelance Game Developers

First off I wanted to apologize if this isn't the right place to post this; I wasn't sure where else to go. I plan to cross-post this question to the Game Maker forums since that's the engine the game ...
1
vote
0answers
97 views

1Bit Bayer Ordered Dithering Shader

I’m having a problem trying to fix my 1bit ordered dithering shader. This shader is going to be perfect to be used but there is some detail that I would like to fix. First of all, this shader is not ...
0
votes
1answer
224 views

How to create a game app in Game Maker Studio for Chrome OS

There are multiple app types in Game Maker Studio you can export to. Which one would be for a Chromebook? I've tried to research the topic, but I haven't seen anything that clearly states if GMS can ...
0
votes
0answers
26 views

How to assign a new value to a global variable in GML

I have a variable called global.goldchance = irandom(99);. I use it to get a random number from 0 to 99. However, I need to be able to run it again so that the ...
0
votes
1answer
83 views

Raycasting in GameMaker Studio 2 to implement hitscan weapons?

I'm working on a 2D top-down shooter game in GameMaker Studio 2, featuring different weapons and obstacles all around the levels. Since I don't need a high degree of simulation, I'm implementing ...
0
votes
1answer
93 views

How to display localized text from the selected language's script file?

I am trying to make a textbox engine for my RPG using Gamemaker Studio 2 as my game engine, and so far I have managed to make a pretty good-looking animation for when the textbox comes in and out. I ...
0
votes
1answer
45 views

How to detect when a shot hits the opponent from behind?

I'm making a game where the enemy can turn on its own axis in 360 degrees (top view game). The player-controlled character has a bow. With this bow he shoots and deals damage when he hits the enemy. I ...
0
votes
1answer
48 views

How do I create a powerup that affects speed for a limited amount of time?

I am looking to create a powerup such that when the "playership" object collides with it will affect the playership's speed for a few seconds, let's say 30-60 seconds. I cannot seem to ...
0
votes
1answer
106 views

How do I adjust speed of an object in gamemaker studio 2

Currently, I have this in my step event. y += sign(mouse_y - y); I am trying to adjust how fast it goes towards the mouse so I can have it scrolling up and down the screen. sorry if this has been ...
0
votes
1answer
80 views

Debugging shader script in GLSL ES - Game Maker 2 (CompileError)

I am trying to use this shader in the game I am making with Game Maker Studio 2. I tried to convert it for GM2 and here is my result: Shader type I used on GM2 is ...
1
vote
0answers
31 views

Gamemaker Studio 2 window_set_fullscreen() causes entire screen to go gray, CRTL ALT DEL doesn't work

I'm working on a small game in Gamemaker: Studio 2 in which the user can press F11 to toggle fullscreen. In the "Key Press - F11 Event, I've added the following code: ...
0
votes
2answers
65 views

How to extend a line to infinity?

In my game I have a line that simulates the trajectory of a gun shot, fired by the main character. The line starts at the character and ends at the mouse position at the moment of the click. What ...
0
votes
1answer
33 views

Function destroying wrong object

I am using the collision_line_list function to detect all objects of a type. In this case, the object is obj_CapMan. Code: ...
0
votes
0answers
37 views

How to avoid the collision of objects that move along a path?

There are 2 cars (same object) that go through a circuit: Consider that the white part is an intention that they avoid (it would be as if it were a wall). The black part (circuit) would be just ...
1
vote
1answer
29 views

How to round/smooth the path of an object/sprite that orbits around another object?

Below is a code that defines the values ​​that cause the sprite to start at the top of the object being orbited: Create Event: ...
0
votes
0answers
10 views

Application stops working when I add two fonts

I created a game that has two fonts. Being precise, the two fonts are PRESS_START_2P with the difference only in size. One of the fonts serves to write the title and the other for all other things. ...
0
votes
1answer
67 views

How to develop a GameMaker game for both desktop and mobile

For a few months I have been creating a game using GameMaker Studio 2 Desktop. It turns out that I would like to launch it also for cell phones, and for that I bought GameMaker Studio 2 Mobile. That's ...
0
votes
2answers
222 views

Multiple small UDP packets vs One big constant UPD packet

I'm making a MMO Bullet Hell game on Game Maker Studio 2 with a node.js server and I'm already able to receive and send information through UDP connections. I NEED to keep the server as fast as ...
0
votes
1answer
83 views

Ini files only work on my computer. How to create ini files in a directory on another computer?

I am creating a game that requires the use of ini files. The game works perfectly on my computer. When I create and executable, the executable even uses the ini files when I am programming/testing the ...
1
vote
1answer
1k 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
1answer
101 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
75 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
1answer
32 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
206 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
28 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
43 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
28 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
74 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
1answer
471 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
1answer
196 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
49 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
39 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
38 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 ...
-1
votes
2answers
155 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
242 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: ...
1
vote
1answer
120 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?
0
votes
1answer
171 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
298 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
1answer
436 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
1answer
55 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
1answer
45 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
64 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
38 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
155 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
102 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
49 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
65 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
15 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
218 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
81 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. ...

1
2 3 4 5
9