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

How to create walking animations in Gamemaker 8

We are learning how to use Gamemaker 8.1 in my game design class, and I wanted to experiment with it, and try to make my own game. I have run into a problem when trying to animate an object walking. ...
0
votes
1answer
445 views

How to manage collision between balls in Game Maker 2 (Drag and Drop)

Hey there I'm using Game Maker 2 Drag and Drop for a project, I made a game like Break Out and when the ball collides with the wall it doesn't bounce, in Game Maker Studio we had Bounce Action but in ...
0
votes
1answer
603 views

Sprite/Object/Room limits in GameMaker 8.1?

I know about GameMaker Studio’s limitations for sprites, objects, rooms, and other assets (https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations), but I can’t ...
0
votes
1answer
47 views

Toggle action for gamepad triggers, whilst being held down

I'm doing a small fighting game project, as up now every button command in my map code is occupied with their designated functions. All except the triggers; as up now they only have their basic "press ...
0
votes
1answer
147 views

Can't scale properly to android device in Game Maker Studio 1.4

My phone is using a resolution of 360 x 640 with a 9:16 aspect ratio. I set my room in game maker to ...
0
votes
1answer
34 views

Game Maker Studio 2: Why is my variable not being properly changed?

Ok, so in my game you have a party of four characters that you control one at a time, each of which can lose health and die independently of each other. All of the player character objects use ...
0
votes
1answer
92 views

How do I let game maker know that recieved json data is an array?

In python I created an array called lobbyList = ["Awesome","Funny","Epic"] I sent this array to Game maker studio 1.4 using JSON, I made a variable called ...
0
votes
1answer
3k views

Creating a click and drag system in GameMaker Studio 2

I am attempting to create a click and drag system in GameMaker 2, for example a dress-up game or maybe a puzzle. How would I go about getting the objects to click and drag? I'm trying to get it so I ...
0
votes
1answer
70 views

Why is my image speed not changing?

Following is my code for my platformer. However, in the //Run with left shift// section when I made the image speed change, the speed is still the same and doesn't ...
0
votes
1answer
141 views

Unknown variable direction in object.direction | Game Maker

This is my first question on a forum so please forgive any mistakes I may have made. I am trying to make a game similar to the classic "Asteroids". I am trying to split the asteroids in two when a ...
0
votes
1answer
100 views

How to get buttons to follow the GUI perfectly while also being usable in GameMakerStudio

Basically I'm trying to figure out how to make a button, that you can interact with that shows above the GUI draw event and locks perfectly to the screen. The current draft I have the button is below ...
0
votes
1answer
382 views

Some GAME MAKER function for windows close button?

In my game there are variables that go through all rooms, so if the player leaves the "variable x" worth 10, and goes to another room, when he returns there is the "variable x" worth 10, same thing ...
0
votes
2answers
54 views

Equal objects with independent variables in Game Maker?

Think of a situation with two distinct runners with different speeds. They will have to walk a circuit in a straight line with two obstacles (police). Below is an illustration of the situation: The ...
0
votes
1answer
42 views

Gamemaker Studio 2 html5 game sfx influence background music volume

When I run my game in html5 the game sound effects for shooting makes the background music less audible. It is like the volume of the bg music goes down. And when shooting is done it goes up again. ...
0
votes
1answer
1k views

How to make 4 way walking animation in game maker studio 2?

So I am trying to make a 4 way movement for my character, and I cant seem to get the walking animations to work for it. The character moves fine, but whenever he moves, the walking animation doesn't ...
0
votes
1answer
171 views

data structure fails to instantiate GMS2

Error message: Data structure with index does not exist. at gml_Object_enemy_actor_Step_0 (line 10) - hand[i] = ds_stack_push(deck); Code snippit that is referenced in the error message: <...
0
votes
2answers
72 views

Nested reference problem

I have an array of objects tied to a global array in GMS2 When I try to reference the variable used to position the object I get errors saying the variable hasn't been declared. The error also says ...
0
votes
1answer
202 views

Multiple points of gravity in GameMaker Studio 2

I'm trying to make a simple 2D prototype in GameMaker Studio 2 where there're multiple points of gravity, essentially static objects in the scene that attract the player-object based on distance and ...
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, ...
0
votes
1answer
291 views

How do I draw two lines of text in GMS and keep one static?

I am making an intro sequence for my game, but I'm having some difficulty drawing two lines of text. The first line is "DEVELOPED BY:" referenced from a separate language file as "IntroSequence", "...
0
votes
1answer
59 views

How do I change windows commands to android commands?

I created a game and would like to test it on android, but it does not respond to any touch on the screen, I think it's because I have to adapt the game code for android. Click => Touch I developed ...
0
votes
1answer
469 views

Walking over walls - Game maker studio

I am having an issue with the walls in my game. I have set them as objects and used the script: depth = -y; inside their create event. However, when I walk my character in front of them, the ...
0
votes
1answer
553 views

GameMaker Studio 2: DnD - How do I change Idle animation to Walking Animation

I have an idle animation into an object. I am able to have it moved to one point, left & right but but the problem is transitioning from Idle to Walking Forward. I did tried step but I realized ...
0
votes
1answer
169 views

Move an object towards a point relative to its position

I am attempting to move an object a set distance in a direction relative to the objects current position. In other words I want the object to move to whatever point is 144 pixels below the object, and ...
0
votes
1answer
892 views

Game Maker Language's random function always giving the same result

I'd like to create a Snake game, and for that, I'd like to position the sweet which makes the snake bigger in a random position. For that, I use this code in the create event of the object bonbon : <...
0
votes
2answers
997 views

My GML object doesn't want to inherit variables

here's the error that I can't seem to get rid of. FATAL ERROR in action number 1 of Step Event0 for object side2_obj3: Variable side2_obj3.sidePick2(100004, -2147483648) not set before reading it. ...
0
votes
1answer
200 views

How to make a drawing action run in an left released event in Game Maker?

At first I tried to make the progress bar update using only one object that would command everything (obj_Control), linking to the ...
0
votes
1answer
506 views

Game Maker 8.0 - Can I simulate any collision event within the step event of an object including the “other” reference?

Let's say I have two objects. One is "obj_wall" and the other is "obj_player". For the sake of argument, let us assume that I cannot just add a collision event to obj_wall (I truly cannot due to ...
0
votes
1answer
86 views

GameMaker project works fine when targeting Windows but not when targeting HTML5

As mentionned in the title, my GameMaker project works fine when targeting Windows. However, when I build it for HTML5, I got those errors in the Chrome developer console: ...
0
votes
1answer
60 views

How to stop player falling through blocks without bounce

So I have this game and I have applied gravity to it and when I load it up it just falls through the blocks and out of the screen. I have tried the bounce event but it just goes into an endless loop ...
0
votes
1answer
32 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? ...
0
votes
1answer
511 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
2k 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 ...
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 ...
0
votes
2answers
673 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 ...
0
votes
1answer
1k 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
262 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 ...
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
876 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,...
0
votes
1answer
288 views

Variable Problem in GameMaker Studio [closed]

On obj_player I have a Create and Step event Create: ...
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 ...
0
votes
1answer
92 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 ...
0
votes
1answer
68 views

A way to create a variable that includes a modifier that should be checked every step [Gamemaker]

I can't tell if I am being stupid, but I am looking for a way in Gamemaker to have a variable include a modifier which has the potential to change every step. This variable is called ...
0
votes
2answers
73 views

How do I optimize checking adjacency within a matrix (including diagonals)? [Gamemaker Studio]

How I was checking adjacency before: ...
0
votes
2answers
74 views

How to Check and Destroy “linked” gems quickly efficiently

Engine: Gamemaker Studio (simplified) Situation: I have a 6x6 board (at this moment) stored in a 2D matrix, a mechanism for linking adjacent squares, similar to Puzzlecraft, and a button that ...
0
votes
1answer
67 views

How do I change the sprite used for an object, while the game's running?

Engine Used: Gamemaker Studio I want to be able to swap between two armors on the player character. They've each got their own unique animation / general sprite stuff. How do I "equip" the second ...
0
votes
1answer
5k views

How to assign an instance of an object to an array?

Game Engine: Gamemaker Studio I am making a game similar to bejeweled. I decided to use an array to control everything. Placing instances of objects themselves in to the array seems to be the best ...
0
votes
1answer
1k views

How to stop reinitialization in Gamemaker Studio

Situation: This is a problem that I don't know if it is actually a problem yet: I've got initialization of variables like food, ...
0
votes
1answer
795 views

Moving Objects Relatively With Their Parent Object [Gamemaker]

I have an object type, oFur, instances of which are generated in a random distribution over the sprite area of a parent object, ...

1
5
6
7 8 9