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
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 : ...
1
vote
1answer
35 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 ...
1
vote
1answer
5k 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
vote
1answer
403 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
944 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 ...
1
vote
2answers
628 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
503 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
1answer
975 views

Why is the code in this if statement being run when the condition for it is not met?

I have a feeling I'm overlooking something stupid here... By default all of my enemy objects start without a target assigned to them. As in - "target = noone;" However, despite target being ...
1
vote
1answer
845 views

(Gamemaker Studio) How to draw a vector?

Let's say I want to start from the center pixel of a screen of indeterminate size, and I want to be able to draw an arrow from this center pixel to any other pixel. The only way I know how to do that ...
1
vote
2answers
919 views

Using angle_difference to calculate shortest turn to target [Gamemaker]

I've tried, but I cannot understand angle_difference. I have an object, oTurretDetTurret, which turns to face its ...
1
vote
1answer
1k views

Why is my variable seems to be non-existent in GameMaker?

I find myself stuck again with a peculiar issue that I don't really understand. I'm currently trying to implement a "weapon" into a shooter game (using it as a learning project), as I was (and still ...
1
vote
1answer
454 views

Game Maker - Turn On/Off Sound

What I have I have two rooms: rm_home and rm_options. I have a sound: snd_Bgm. And, I have ...
1
vote
1answer
77 views

How do I let the an object know where in a matrix it is?

Game Engine: Gamemaker Studio Situation: I want 6 rows of 6 objects, each housed in a cell of a 6x6 matrix. However, this presents the problem of the matrix knowing what's in the cell, but the object ...
1
vote
1answer
653 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
2k views

Issue with variables in GameMaker Studio

I am having issues coding a game, in terms of variables in objects. Whgen running i get this error ...
1
vote
1answer
406 views

Convert Mouse Coords into Isometric Tile ID

Using GameMaker Language, I'm basing off their Adavnced Examples. How can i convert the current mouse position into a tile position? The mouse coordinates are 0,0 from top-left This is the function ...
1
vote
1answer
45 views

How to give a value to all elements of an array?

This problem is encountered in Game-maker studio: I created an array using the following iteration: ...
1
vote
2answers
1k views

Detecting Collision in Next Step when Collider is rotating

In my Gamemaker: Studio game, I have a collision script for my enemy. The enemy is an alien, oSwarmer, moving through space which is also filled with drifting, ...
1
vote
1answer
4k views

Finding relative x and y value on a sprite [Gamemaker]

I'm having a little conundrum that may just result from a lack of knowledge of Gamemaker's functionality. I've attached two images to aid explanation. I have a sprite of a turret (with a gun barrel), ...
1
vote
4answers
7k views

In Game Maker Studio, how do I make a sound play only once when I jump on a block?

In my Game Maker Studio game, jumping on a musical block should play a note. Currently, if I step on it, the note keeps repeating. How can I avoid that? I only want the note to play once.
1
vote
2answers
407 views

Sound isn't playing in Game Maker Studio when interacting with an object

I'm making a small game in Game Maker Studio. I have a piece of code that moves the player to the next room when he touches obj_star: this works. I have another ...
1
vote
1answer
257 views

Better way to find all sprites that would overlap with other sprite

first question on this site :-) I'm not really sure that the title is very clear so feel free to edit/suggest a better one. I have a piece of Game Maker code which works, but feels like a bit of a ...
1
vote
2answers
5k views

How to only allow a certain amount of the same instance in Game Maker?

I am creating a simple jump n' run game. For some reason my game sometimes spawns two instances of the same enemy on top of each other. So you can't tell there are two of him until he uses his attack ...
1
vote
1answer
18k views

How would I make a bullet shoot from my player to my mouse.

So far I've created an object called obj_mouse. And my plan is whenever the player left clicks, it spawns a bullet from him toward where ever the mouse is pointing. I've got the concept down, but I'm ...
1
vote
1answer
1k views

Why doesn't my GameMaker step event work?

So I want to make some kind of floor that which the player when walks in gets his movement reduced but im having thousand of different issues implementing this since it doesnt appear to do anything ......
1
vote
1answer
7k views

Prevent instances from overlapping gamemaker studio

I have a game where multiple instances of an enemy move towards a player in their step process. There can be as many as 50 instances on screen. The issue is that the instances all end up in 1 big ...
1
vote
1answer
297 views

Can you do a stencil glow with native GM:S commands?

I am looking to a stencil glow on GM:S with d3d_* functions. I could not find anything how to access the stencil buffer though. Is it even possible to access the stencil buffer without using an ...
1
vote
2answers
1k views

How to give parallax backgrounds more depth

I have 3 tiled images of some sort of galaxy/space in the background of a 2D Game: The first one has an alpha of 100%, the second an alpha of 80% and the last one has an alpha of 60%. I scroll the ...
1
vote
1answer
17 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: ...
1
vote
1answer
77 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
124 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 ...
1
vote
0answers
34 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
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 ...
1
vote
1answer
59 views

Game running with fewer steps than desired (game created in GameMaker)

I tested my game on 4 different computers and got some results. PC 1 => AMD A4-6300 APU with Radeon HD Graphics / 2,0 GB RAM / AMD Radeon HD 8370D In this computer I tested a few stages and I ...
1
vote
0answers
204 views

Making games on Structure programming language c or c++ [closed]

I am learning structured programming language C. I know about data type, control statements, loops, arrays, strings, functions, pointers, structures and STL. My question is, if I want to make game ...
1
vote
1answer
701 views

ds_map_find_value returning number instead of array

Currently messing around on how to make a text engine in GameMaker and figured I would hold all my conversations in JSON format stored in a .txt file, which I'll convert into a ds_map and draw the ...
1
vote
1answer
161 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 ...
1
vote
1answer
366 views

Tic Tac Toe Victory State Detection [closed]

Below is the code I'm using to check if the board state has a tic tac toe style victory state. The board is always square and is made of an array of objects that keep track of their own completion ...
1
vote
1answer
145 views

GameMaker Studio 2 - How to place object back beyond X coordinate for looping (warp)?

I'm making a side-scrolling shooter where I want an object to move from right to left (towards negative X), then, when it's passed out on the left side, jump back to beyond the window width (right ...
1
vote
0answers
56 views

How do I remove 'playerachievementcache.dat' from my GMS project?

I am working with a GameMaker: Studio project that outputs a file called "playerachievementcache.dat". It isn't used for anything, and I can't seem to remove it from my project. Is it possible that ...
1
vote
0answers
33 views

How can I use a custom payload name for my GameMaker game?

I have finished compiling my GameMaker Studio .win file. I then copied the Runner.exe binary to the game's directory to run it. ...
1
vote
0answers
451 views

How do I setup Android SDK for GMS?

I am trying to set the path for the android SDK in GameMaker: Studio, but I am having an unexpected ammount of difficulty with this. Initialy, I installed Android Studio and tried setting it's ...
1
vote
2answers
492 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 ...
1
vote
1answer
764 views

why won't my character move

I am using game maker because I am new to game development and I think it's the easiest to understand because I took a course on it but I put in all the events so that my playerobj moves when you ...
1
vote
1answer
4k 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 ...
1
vote
0answers
182 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 ...
1
vote
1answer
486 views

Trouble With Physics Joints [Gamemaker]

I'm trying to create a series of physics-enabled 'ropes', with hard limits on how far they can swing left or right. They are comprised of an oRopeRoot kinematic ...
1
vote
0answers
1k views

Is it possible to mod a GameMaker game? [closed]

I been google searching on how to mod Game Maker games (Hyper-Light-Drifter to be more specific) but so far everyone says it's impossible to mod the files. The reason I want to do this is I want to ...
1
vote
0answers
362 views

(GameMaker) Smooth scaling and transparency while zooming

My game has a zoom function. There is a man in a spaceship, we can see the interior of the room room from side on as the outside is totally transparent. When I zoom out I want the outside of the ...
1
vote
1answer
47 views

Permanent Adjacency Problem [Gamemaker Studio]

Situation: I started work on a pet project recently. It's a bit like Puzzlecraft, or Bejewled, but slightly different. You click one gem, as we'll call it, and if it's the first in the link, then it's ...

1 2 3
4
5
9