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
-2
votes
2answers
118 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 ...
5
votes
4answers
1k views

Lunar Lander calculating gravity, acceleration and collision in GameMaker

I've already asked this on the GameMaker forums but had no response so far. I'm making a little Lunar Lander game as my first foray in to GameMaker, I'm wanting to have the ship land and take off ...
0
votes
1answer
421 views

Change sprite angle on sloping ground

I have a problem here with GameMaker built-in physics environment.My player is designed to be on a skateboard. I want my player to rotate its sprite, according to the kind of fixture(up or down slopes)...
1
vote
2answers
2k views

Creating 2d array in gamemaker from code

According to GameMaker2 arrays documentation, GML has 2d arrays. At the same time I could not find any references how can I create 2d array from code. I tried doing ...
0
votes
1answer
53 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
0answers
8 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. ...
1
vote
1answer
95 views

GameMaker Studio: fullscreen vs. dialogs

When setting my game to fullscreen, I get problems with dialogs: "get_save_filename" opens in the background, and when I close it, the game doesn't react anymore. Asking the user a yes/no question ...
3
votes
1answer
93 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
1answer
123 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 ...
0
votes
2answers
66 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 ...
2
votes
1answer
403 views

How to make a boss control multiple object spawners in Game Maker Studio 2

I'm working on a boss fight for a 2D platformer/shooter game in the vein of the Megaman franchise. I expect part of the fight to include this boss causing large boulders to fall from certain points on ...
1
vote
1answer
554 views

How can I make relative movement in GameMaker studio?

I know I can change the hspeed and vspeed properties on my object. Assume I do it for the directional diamond in a squared-style ...
0
votes
1answer
211 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 ...
1
vote
1answer
1k views

How to add clickable text link in Game Maker Studio 2?

I was wondering if anybody knew how to add text, that when clicked, would take you to another website in Game Maker Studio 2.
0
votes
2answers
72 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
vote
1answer
649 views

Game Maker Studio - Check Collision With Subimages

I have an obj_roulette, which contains 4 subimages, with value 2-5 and image_number 0-3. The ...
1
vote
2answers
485 views

Loss in quality on downsized sprites in Game Maker

I'm having an issue with sprites quality in Game Maker. I have some sprites used for UI with an original size of 2048*512. I need to resize them in game to 512*128. But when I do, I got a loss in ...
0
votes
1answer
31 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 ...
1
vote
1answer
156 views

Game Over not appearing in third room (GameMaker Studio 2 Trial)

This is my first StackExchange post, so forgive me if I make a silly mistake. Getting to the point, I've made a simple Mario-esque platformer where whenever you die, game over text is printed to the ...
0
votes
1answer
125 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
51 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 ...
0
votes
1answer
64 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"): ...
9
votes
1answer
316 views

How to draw a Voronoi Splitscreen view in GMS, where each player's screen area is a polygon shape?

I'm trying to implement the Voronoi Splitscreen effect that Squirrel Eiserloh described at GDC 2016, and I'm having trouble figuring out how to 'clip' the rendered scene for one player along a ...
0
votes
1answer
101 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 ...
1
vote
1answer
448 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
43 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
52 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 ...
2
votes
1answer
2k views

How do I check if an item no longer exists in GameMaker Studio?

Let's say I have an array of objects[i,j], which has been fully populated by objects obj_example. I want to delete 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
vote
2answers
472 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
1answer
42 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
26 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
3answers
3k views

What is the difference between phy_position_x and x in GameMaker: Studio?

This is not covered anywhere in the documentation that I can find. I am using the physics engine, and the reported phy_position_x and x values are different, such that (phy_position_x, phy_position_y)...
0
votes
0answers
59 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
1answer
146 views

Variable Problem when coding the Player Movement in GameMaker Studio 1.4.9999

In oGirlTest object I have a Create and Step event. Create: ...
0
votes
0answers
45 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
46 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
81 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
40 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 ...
1
vote
1answer
153 views

Gamemaker Multiplayer Game

I'm trying to implement multiplayer into my game using the server client model. What is the best method of synchronozing the game between the clients? What I'm thinking is that the game runs on the ...
0
votes
0answers
38 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 ...
1
vote
1answer
137 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 ...
1
vote
1answer
200 views
3
votes
1answer
286 views

How to check if all switch objects in a room are set to true?

I'm trying to implement a puzzle mechanic in Game Maker Studio 2. Where you need to activate multiple switches for an event to happen (e.g. opening a door) However, I'm currently stuck in recieving ...
-1
votes
1answer
183 views

How to bypass build-in variables?

I've been busy working with Gamemaker Studio 2 and I've noticed that it has quite some build-in variables. Like 'x', 'y', 'speed', 'health'. These variables have already a set function, and it ...
1
vote
0answers
62 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
2k views

Fatal error in Game Maker: variable not set before reading it

I have been following the tutorial videos on game maker, and I am at the part where he explains how to get the bullet under the character. I thought I did everything right. He then tested the game, ...
4
votes
3answers
248 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
62 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 ...

1
2 3 4 5
9