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
31 views

Projectile code reports wrong number of arguments

I'm not certain as to why my code isn't working. The error reports that the instance_create line uses a wrong number of arguments. What am I doing wrong? ...
-1
votes
1answer
589 views

GAMEMAKER : Assign variable value as variable key

I tried something without success, so I ask myself if it's possible to perform this with Gamemaker. array[0] = "example"; global.array[0] = 3; Explicitly I want ...
0
votes
2answers
120 views

Making a sound every time I get to the edge of the platform

I'm trying to make a runner game for the blind, and I need help making a sound every time it is time to jump. I am using Game Maker, and I have no idea how to do it. How do I play a sound when my ...
0
votes
1answer
183 views

Gamemaker: Get from which children action is called

I've got 3 Children in 1 Parent which has "Left pressed" action. I just want to know from which child this action is called. I try object_index but obviously it ...
1
vote
1answer
129 views

Not a Number error

I am developping a little game with GameMaker Studio. I am sorry if this is a silly question, but I keep getting NaN as a result of this equation : ...
0
votes
1answer
501 views

How can I manually advance a timeline in GameMaker?

I have a timeline from 0 to 300 frames divided into maybe 20 different steps. When I certain condition is met, I want to jump to the next step of that timeline. How can I do that?
0
votes
1answer
150 views

Non-existent instance in Game Maker

I'm currently trying to make the fire object (created by the fireball) stick to the enemy, by specifying the enemy type and its id. I'm getting the following error: "Unable to find any instance for ...
-2
votes
1answer
539 views

gamemaker studio draw event to have collision detection/solid

i dont know if this was able at the first time but do any one know how to make an object draw event to be solid or have collision ? i really needed it, cause i'm too lazy to make for example a box ...
0
votes
1answer
55 views

Game Maker (and others): what data type is colour and how can I compare them?

In Game Maker, and I imagine other engines, one can "make colour" by defining either the red-green-blue values of the colour or its hue-value-saturation. I want to create a program that can compare ...
0
votes
1answer
1k views

Game Maker: How to check overlapping instances of the same object?

I want to make sure that no two instances of obj_A are overlapping, but can't seem to figure anything out, because ...
4
votes
2answers
210 views

GameMaker - Sprite will not stop moving backwards

I am very new to game development, and I am using GameMaker Studio as my first engine. I was following along with a tutorial to create an Asteroids-like game from scratch, but right now I am trying to ...
3
votes
1answer
464 views

Score over time

I have the following code for adding 1 to global.score in the step event: global.score +=1; The problem is this adds the ...
0
votes
1answer
93 views

Game Maker: is 08 the same as 8 in arrays?

if I make an array A_[01], can I refer to it later with A_[1]? I am asking because I am not sure if this is the reason why I am ...
1
vote
1answer
34 views

Offset direction stops working when I get too close

I have a script trying to get the gun aim at the target instead of the origin: It's partially working. but when I get too close with the mouse the player starts spinning I would appreciate a help ...
0
votes
1answer
51 views

I'm trying to make another object move, besides from the character

I want to create a small build of a TRPG, simaler to the Fire Emblem games. What I want to do is that I want to have the cursor be able to move a 'character' to a certain location. Any help? (I'm ...
3
votes
2answers
1k views

How to set a static size for an object in GameMaker?

I have many sprites with different sizes, and I have an object in which I set those sprites, but this object gets resized by the currently displayed sprite. How can I set a fixed size for the object ...
1
vote
1answer
4k views

How to change the sprite of an object from another's script?

I have an object A and an object B, I want that when object B is in a certain position, the sprite of object A changes to that corresponding to that position, how do I change the sprite of object A ...
-1
votes
2answers
188 views

Stuck space invaders

I have the following space invaders code which is working pretty well. On invader creation: ...
0
votes
2answers
581 views

Gamemaker: images appear blurred in application

I'm making a practice game (generic space invaders clone) in Gamemaker Studio. However, there appears to be a problem with the images. While they look acceptable in Gamemaker Studio (not amazing, due ...
-1
votes
1answer
353 views

GameMaker (RPG) Room transition problem how to save the progress made?

My problem is that I made 2 levels and made 2 doors and since I want to go from room1 to room2 so I wrote this code in the door: ...
1
vote
1answer
383 views

Multiplace instances of an object in Game Maker with a variable changing

I want to do a level selection menu in GameMaker. There's one button for each level. Clicking on the button 1 take you to level 1, button 2 take you to level 2 and so on. But if I duplicate the ...
1
vote
1answer
3k views

GameStudio : How to remove object after delay

When you pick an item in the inventory and drop it to obj_item_ground, this item is send to the ground. That's fine. I want to add a delay to this item to destroy ...
0
votes
1answer
876 views

GameMaker: how to let the game run as fast as it is able to?

I am making a game/simulator where I want the game to, upon command, run as fast as the computer can handle, that is to say, if the game can run at 60 fps, don't run at 30 fps. What should I do to ...
0
votes
1answer
3k views

How can I use collision lines to implement line-of-sight in GameMaker?

I am making a GameMaker game that involves the enemies having line of sight so that they don't target the player through a wall. I have this code that uses collision line to detect whether there is a ...
0
votes
1answer
586 views

Gamemaker display orientation detection

I am making a game that needs to detect when the device gets turned over in landscape mode to landscape-flipped to change some game mechanics when the player does so. The project is already set to ...
0
votes
1answer
613 views

Making a 2D Game: Figuring out sprite sizes?

I'm currently making a 2D game as a school project using Game Maker and its language. My concern however is around the spriting and art... I can't figure out how to correctly size everything so it ...
0
votes
1answer
258 views

Does Game Maker use use intrinsic or extrinsic rotations?

I have a pretty difficult problem on my hands. My 3D character moves through space and rotates. I do not know the angle of rotation at any given time, but I do have three X, Y, Z unit vectors serving ...
-1
votes
1answer
125 views

Camera not working in a Game Maker mod I am creating [duplicate]

I wrote an object, in Game Maker. My problem is that the camera appears to be nonexistent. It does not follow the player, and from the perspective it displays on the screen, I believe I simply do not ...
0
votes
1answer
72 views

Random generated text not working

I'm trying to make a game which requires a random generation of sentence upon pressing spacebar. I've never done anything like this and wanted to give it a shot with whatever knowledge I had. ...
0
votes
1answer
801 views

Try to connect to Game Maker server

I'm trying to make a simple multiplayer experience with Game Maker, using a local network, and the basic idea is to use Game Maker's built-in networking functions. Using a simple client-server pattern,...
1
vote
1answer
818 views

How do I implement the functionality of Game Makers point_direction() function?

I am trying to understand the logic behind Game Maker's point_direction(x1, y1, x2, y2) function, which takes the vector from ...
0
votes
1answer
269 views

Variable Problem in GameMaker Studio [closed]

On obj_player I have a Create and Step event Create: ...
-7
votes
1answer
200 views

Why won't my model display fully in a mod made with an older version of GameMaker?

I have a model of a corkscrew that I am modding into a game made in what I believe was Game Maker 8.0. Unfortunately, there is little to indicate what version it was made in, other than that it was ...
3
votes
1answer
2k views

How do I change color of one part of sprite in Game Maker?

I want to generate a competitive game like Age of Empires where each player has access to a variety of units, and each player can be distinguished by a color in each unit And instead of sprites ...
-2
votes
1answer
321 views

Getting a game maker android error

When I attempt to build my project, I get the following error. Can anyone help? ...
-1
votes
1answer
200 views

Drawing a highlight over selected ability

(I am new to gamemaker) In gamemaker, I'm not sure what a good way of drawing a highlight sprite over a specific area on my ability bar, when my "mode" variable is in a certain position. For example, ...
0
votes
1answer
52 views

How to run code as an instance you just created in GML

Alright, I'm looking how to create an instance, and then run a chunk of code on the instance I just created, and not have that code run on any other duplicate instances. Noob question, I know. Please ...
1
vote
2answers
606 views

How to fake a 3d character displacement by sprite scaling in GameMaker?

I want my 2D sprite to become bigger when moving down the screen (closer to the camera), smaller when walking away and to maintain the same size when moving left or right. The scaling along the y ...
1
vote
3answers
466 views

How to make buttons change in to another button when pressed in Game Maker

I am trying to make it so that when I click on a button in my games store that the current button changes to a new one right where the old one was and then has its own conditions. ex. Press the ...
1
vote
3answers
430 views

Help setting up money system in game maker

I am trying to make a clicker game where one button makes the item and then one button sells the item. My problem is that I don't know how to make the one button stop selling when it reaches 0 items ...
2
votes
1answer
452 views

Game Maker - How to change color palette using shader and texture?

How can I change the color of the application surface using a texture? https://en.wikipedia.org/wiki/List_of_8-bit_computer_hardware_palettes https://en.wikipedia.org/wiki/List_of_8-...
1
vote
0answers
177 views

Game Maker - Shader CGA - how to swap the palette

I created a shader that get the actual color of the surface and render it to the closer of a cga palette I have to change it to swap the palette in 4 colors but I don't know how secondary, I have to ...
0
votes
2answers
80 views

How to clear the scores?

My issue is when I exit the game the lives and scores still appears in my game menu so how do I clear them after I quit the game and get back to the menu?
-2
votes
1answer
4k views

Is Game Maker capable of creating my MMORPG? [closed]

I have an idea for a turn-based game MMO, and before starting the conception, I need to know if GameMaker is the right program to use. I already took some advice from this question, and I do not wish ...
0
votes
1answer
476 views

Rotating image angle, direction of object that is resting on floor object

I have an object, in this case a space ship, resting on a floor or platform object. The bottom of the space ship is flat, and is resting flush with the flat surface of the platform object (due to my ...
0
votes
1answer
91 views

Why is the bullet not created realitive to the player?

I'm using GameMaker to make my game and I'm trying to get the player bullet to fire out of the players gun but for some reason even though I checked 'relative', the bullet is still being created at ...
-3
votes
1answer
79 views

Tiling Challenge [closed]

I have a problem and I hope I am in good hands. I recently started using Gamemaker Studio and I intend to create a 2d game where a room can be tiled seamlessly from the wall to the floor with wall ...
3
votes
2answers
286 views

In GameMaker, is it possible for users to code something into a game while playing, and verify that it is correct?

I was wondering if in GameMaker it would be possible to allow people to code a small bit of the game in so that they then unlock that move/code? Think of the game DLC Quest, in the way that you had ...
0
votes
5answers
3k views

Is there a way to set a range on a case argument in a switch statement in Game Maker: Studio?

Okay so I am making a tower defense game in GML and I came across a small problem when making a switch statement, I want to have anything from 1-10 to result in a variable changing to 1, anything from ...
1
vote
1answer
79 views

Sprite sizing for my game [closed]

I have recently started a new project with my SO (Significant other)and she is doing the art for my game (Pixel art) now i have always gone with 32x32, 64x64 and so on (Using 16x scale) but she thinks ...

1
3 4
5
6 7
9