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

In Game Maker Studio, why does the image rotation have to be performed every step?

I'm a software developer who's trying to get into game development casually on the side. I picked up Game Maker Studio a while ago on a Steam Sale, and I'm finally getting into using it, especially ...
2
votes
2answers
525 views

How do game engines like Unity and Game Maker exports to other platforms?

From what I understand, if you want to export a Unity or GameMaker game from the editor, the game needs to be compiled to create an executable. I thought that to produce a Windows executable, you ...
1
vote
1answer
374 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
votes
1answer
999 views

How do I make my enemies to follow a path and allow them to collide with the player in Game Maker?

I am making a game in which enemies follow a path. These enemies should be colliding with the player, but it's not working. The enemy is walking the path. And, I want to make it so if the player ...
0
votes
2answers
3k views

how to check if an array element is defined? (Game-maker studio)

The code is this: if is_undefined(A_SA[V_X,V_Y])=false and A_SA[V_X,V_Y]=0 { //actions from the "if" statement } The error message is this: ...
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
3k views

How to randomly spawn objects off-screen close to the player?

I am making a zombie game. I want to have it so zombies randomly spawn. My code for this is: ...
0
votes
1answer
2k views

How to scale objects and tiles without doubling view port in gamemaker

How do I scale up tiles and sprites without acully making the view port larger than the acual view? I know that I can just scale up the images and the tileset but there must better alternative right? ...
0
votes
1answer
851 views

How to calculate/detect the force of a collision? (Game-Maker Studio)

How can I use game-maker to detect the force in a collision between two mobile (not fixed) objects? This is used for damage calculation and possibly compression calculation. My problem is this: ...
-2
votes
1answer
86 views

How do I find and change a value of ALL the instance around another instance GAME MAKER

I basically need that, changing a variable of all the instance (all of the same object) around another instance (another, or the same object). I have tried with collision_rectangle but it doesn't ...
1
vote
3answers
8k views

game maker place_meeting multiple objects

I am working on a simple game that contains two objects the player and the ground, and I used place_meeting to make the player walk on the ground object and it works fine but when I try to add another ...
2
votes
2answers
995 views

Darkness, and a candle

My game has a Pokemon-type movement mechanic. I would like my level was a pitch black level, but the player having a candle can lighten a circular area, and so walk without being able to see more ...
1
vote
2answers
2k views

How to end the game after the player has defeated all the enemies in Game Maker?

I'm making a simple version of the game asteroids as I'm learning how to develop with Game Maker Studio. Currently, mostly everything works properly except that when the player destroys all of the ...
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 ...
1
vote
1answer
550 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 ...
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, ...
-3
votes
1answer
167 views

Why is my player unable to move when touching the ground?

I want to make a little platformer. I watched Shaun Spalding's tutorial but nothing seems to work. Everything was fine until I put in the collision detection. But the player can't move while he's on ...
1
vote
1answer
8k views

A guide on multi-direction and multi-animation sprites?

In YoYo Game Maker Studio: Is there a way (or an already-created library) I can specify all the possible sprite frames and directions in a way I am allowed to do it in Clickteam Fusion? As far as I ...
-3
votes
1answer
2k views

Game Maker Studio Not Drawing Variable?

///Draws draw_set_color(c_red); draw_text(view_xview + 128, view_yview + 128, string(global.fuel)); Why isn't it drawing my variable?
1
vote
1answer
2k views

Basic collision issues in gamemaker studio

I'm really new to the game design world so I'm sorry if this question is stupid, but here it goes! I have 3 objects, a square that the player controls, a wall that the square should collide with and ...
-4
votes
2answers
366 views

The Power of 2D Engines vs Modern 3D Games [closed]

I'm toying around a lot with Game Maker. I really like it. GML is very simple and with its nearly object oriented design you could create anything in 2D you can think of. However there is a limit. ...
1
vote
0answers
452 views

What is Sprite Kit capable of? [closed]

I am messing around with Game Maker in my free time. I learned some Java at school but never really understood the object oriented principles. When I got to know Game Maker I was surprised that game ...
3
votes
1answer
217 views

Can someone help me with my mario-inspired timer scoring system?

I am new to GameMaker's coding language or GML. I have learned and done a lot so far, but now i am having a problem. I have a countdown timer starting at 5 minutes counting down and I want the player ...
5
votes
2answers
3k views

Gamemaker - Maintain relative position between objects during rotation

I have a large object and a small object - the small object updates its x and y position every step to match the ...
1
vote
1answer
2k views

Moving a UI element with an object on-screen [Gamemaker]

I have an oPlayerobject, and an oTutorial object which has a DrawGUI event for displaying text on-screen. Currently I have the ...
4
votes
2answers
2k views

What's the difference between variables defined with and without the 'var' keyword?

I've been making my way through several tutorials on GameMaker: Studio at this point, and I've been trying to keep track of various aspects of the code used in them. One thing, however, confused me. ...
2
votes
1answer
2k views

How to keep the camera view to within room dimensions

me = self; view_yview[0] += ( me.y-(view_hview[0]/2) - view_yview[0]) * 0.1; view_xview[0] += ( me.x-(view_wview[0]/2) - view_xview[0]) * 0.3; This is ...
0
votes
1answer
859 views

Why does GameMaker Studio not open from a removable drive? [closed]

I downloaded GameMaker Studio 1.4 onto a jump drive so I could use it between two different computers. I downloaded it in a Windows 7 computer, but when I try to use it on a Windows 8 computer, it ...
4
votes
2answers
114 views

Displaying smooth borders given a coarse grid-based map

I've been messing around with different algorithms trying to make a grid based map look smooth, I have tested with various shader based methods and wrote a few of my own but none of them look right. ...
2
votes
1answer
1k views

Is There a Way to See Code Inside DnD Actions in Gamemaker Studio?

I'd like to see the script inside the Drag & Drop actions in Gamemaker Studio. I figure it would be one of the easiest ways to learn GML, and generally a great reference, but I haven't come across ...
1
vote
1answer
2k views

Anchoring a sprite to a specific x & y on another, regardless of rotation [Gamemaker]

I have a sprite, sDetritus, with a corresponding object, oDetritus, and an sTurret and ...
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), ...
4
votes
1answer
667 views

Does each game asset always require a prefix such as 'spr' or 'obj' in their name?

Having started only recently with using GameMaker for game development (keep in mind that this is the first time in a long while that I'm doing something like this, so I'm technically at beginner ...
3
votes
1answer
1k views

How to loop background music through splash screen, main menu, options menu?

I am making a small game to sort of test the waters with Game Maker and I'm trying to have an mp3 play when the splash screen loads - and persist until the game either ends or the game starts (meaning ...
4
votes
2answers
873 views

In Game Maker, how do I make invisible platforms the player can walk on, and reveal with an item?

I'm using Game Maker and looking for help with these: I'd like to have invisible platforms and walkways for the player to move on. I want the platform to be slightly visible in this option so the ...
1
vote
1answer
264 views

Spawning Object 1 Within Object 2's Collision Box [Gamemaker]

I was wondering if any of you could help me with a specific Gamemaker question. Am using Gamemaker Studio. I have an object (oSpecialSolid) which rotates and moves across my level. At random ...
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.
0
votes
4answers
8k views

How to stop movement when an action key is pressed even if movement key is pressed

I'm making a 2d side-scrolling fighting game in game maker:studio and I want to make a code that when the player attacks he stops moving. I've tried some options: ...
3
votes
1answer
632 views

GameMaker: Studio - Slow down calculations

I currently have an orbital simulator, with a brilliant answer in another Game Development question here, and would like to know how to slow down the calculations of Game Maker, to be able to do more ...
2
votes
0answers
256 views

Learning Curve of GameMaker and its limits [closed]

I am a Data Scientist and the last couple of years, I work also as a Game Designer (not Game Development). I have not thought to create a game by myself, up to now. As a DS, I know programming, but I ...
1
vote
1answer
812 views

Can you have an embedded browser in Gamemaker:Studio

I am trying to make a sort of browser in gamemaker and I wanted to know how to embed a browser within a game. Are there any extensions I need to download?
3
votes
2answers
617 views

Checking 2 instances of the same object in GameMaker

There are 2 blocks. If the player stands on a block, some sound should loop and when he gets off it should stop. Problem is, The game checks both the objects and when player is on 1 block, obviously ...
1
vote
2answers
400 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
0answers
66 views

Grid Based AI Pathfinding [duplicate]

I'm creating a top-down RPG and I have the movement system set up for the player character - it is alike to Pokemon in the movement sense in that it looks smooth but it is aligned to a grid. Since I ...
2
votes
1answer
508 views

Gamemaker - Change the fired bullets' direction using objects as guide

So I am trying to create a shooting-ship-puzzle game at sea on gamemaker. There is a playership that must shoot the enemy ships using only the available "whirlpools". There are many whirlpools in the ...
1
vote
0answers
766 views

Animation won't play unless movement key is held down

In Game Maker I am creating a 2D RPG and combat is a part of it. I have some animations that will play when the left or right mouse button is pressed (Depending on if you want ranged or melee attacks) ...
3
votes
2answers
2k views

Game maker else checks all ifs?

I have a list of if functions (checking if various spots in the room are empty) in one event. I want to check them ALL with an else statement (if none of the spots are cleared), and display a message. ...
1
vote
1answer
254 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 ...
-3
votes
2answers
2k views

How can I check if a variable is relative to a number?

I would like to know how to check if a variable is relative to a number in Game Maker. An Example would be: if variablex += 1 { DOTHIS } However this is ...
1
vote
2answers
4k 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
5 6
7
8 9