Questions tagged [gamemaker-studio-2]
Game Maker Studio 2 is the latest major iteration of the cross-platform game creation tool made by YoYo Games, mostly used to develop 2D video games.
30 questions
0
votes
2
answers
64
views
How to properly control speed of sprite scaling to create "hallway" effect
I'm working on a project (in Gamemaker GML, so JS-like) that involves manipulating 2D sprites (scale and position only) to generate a(n intentionally hacky) visual illusion of moving down a 3D hallway....
0
votes
0
answers
182
views
How to animate a ball with fake physics from top down viewing angle
I am making a 2D American football game (similar to retro bowl) in Game Maker: Studio 2, and its main perspective is in 2D. I want to animate a ball that moves in a parabola and can interact with ...
0
votes
0
answers
90
views
How to store a separate high score for each level
I'm trying to make a game in game maker studio 2 where the highest score and ranking is saved for each level.
I have an idea on how to do this for an entire game, but not individual levels. How can I ...
2
votes
1
answer
542
views
How do I save the player's level progress in GameMaker?
My game, made in GameMaker, consists of various rooms (levels) through which you go on progress. So, imagine I'm on level 7, and I leave the game, it goes back to room 1. Also, the only thing I have ...
0
votes
1
answer
167
views
Physics update frequency feasibility
I want to create an offline 2D platformer that is not very physics heavy. After a lot of consideration, I've decided to run most of the physics at a fixed rate of 480hz, and I'm not experiencing any ...
0
votes
2
answers
1k
views
Game Maker Studio 2 Camera Jitter
I am trying to follow an RPG tutorial. I used the code for the camera following from there, but in my case for some reason all sprites jitter every time the camera moves, and also when some NPCs move.
...
0
votes
0
answers
75
views
GMS2 - Game showing the wrong object
I'm making an Undertale fangame in GMS2 and i have a problem with my Game:
It's supposed to show this:
But it shows this:
obj_next_room code:
The car (obj_torcar) doesn't have code.
Room creation ...
0
votes
1
answer
347
views
Graphical bug when changing room
Here is a video showing the problem I'm encountering.
And here's my room change code:
if(room_exists(room_previous(room))) room_goto_previous();
1
vote
1
answer
932
views
Game Maker Studio 2 - Pixel Distortion
I am new to game development and am trying to learn how to use Game Maker to create pixel art games.
I've created a demo game with 16x16 pixels art style, the room size is 1024 x 768 and the viewpoint ...
0
votes
1
answer
801
views
How to make a character walk in GameMaker
I am making a game with my friend and I'm sorting out some scripts. When I was writing the script for walking, I got the error message below. What did I do wrong?
Here is my code:
0
votes
1
answer
87
views
Size of an object based on a variable
The code shown below is meant to change the size of a bullet based on a changing variable. But when I put this code in the create tab, the size of the bullet stays the same, regardless of the variable'...
0
votes
1
answer
176
views
Basis of Estimate (BOE) for Freelance Game Developers
First off I wanted to apologize if this isn't the right place to post this; I wasn't sure where else to go. I plan to cross-post this question to the Game Maker forums since that's the engine the game ...
1
vote
0
answers
676
views
1Bit Bayer Ordered Dithering Shader
I’m having a problem trying to fix my 1bit ordered dithering shader.
This shader is going to be perfect to be used but there is some detail that I would like to fix.
First of all, this shader is not ...
0
votes
1
answer
2k
views
How to create a game app in Game Maker Studio for Chrome OS
There are multiple app types in Game Maker Studio you can export to. Which one would be for a Chromebook? I've tried to research the topic, but I haven't seen anything that clearly states if GMS can ...
0
votes
1
answer
3k
views
Raycasting in GameMaker Studio 2 to implement hitscan weapons?
I'm working on a 2D top-down shooter game in GameMaker Studio 2, featuring different weapons and obstacles all around the levels.
Since I don't need a high degree of simulation, I'm implementing ...
1
vote
1
answer
6k
views
How to share a game created with the free version of Game Maker Studio 2?
I've recently downloaded Game Maker studio for free and made my first game. Now, I'd like to share it with others.
I tried to use the "Export" button and it only creates a duplicate project. ...
0
votes
0
answers
33
views
0
votes
1
answer
379
views
How do I create a powerup that affects speed for a limited amount of time?
I am looking to create a powerup such that when the "playership" object collides with it will affect the playership's speed for a few seconds, let's say 30-60 seconds. I cannot seem to ...
0
votes
1
answer
948
views
How do I adjust speed of an object in gamemaker studio 2
Currently, I have this in my step event.
y += sign(mouse_y - y);
I am trying to adjust how fast it goes towards the mouse so I can have it scrolling up and down the screen. sorry if this has been ...
0
votes
1
answer
584
views
Debugging shader script in GLSL ES - Game Maker 2 (CompileError)
I am trying to use this shader in the game I am making with Game Maker Studio 2.
I tried to convert it for GM2 and here is my result:
Shader type I used on GM2 is ...
1
vote
1
answer
3k
views
How to play videos in Gamemaker Studio 2?
I made a little cutscene in Adobe Animate. I was wondering what would be the best way to have it triggered in game-maker studio 2.
The Video is .mp4 but I could convert it as I have the .fla file ...
2
votes
1
answer
629
views
Formula for attack range using hexagons
I need a little help with a formula to calculate the attack range for my turn-based strat game. Since it's a hexagon grid, I'm having trouble coming up with a formula that would pick the character ...
0
votes
2
answers
3k
views
How to move X and Y position of sprite in GameMaker Studio 2?
In the tutorial it told me to add the sprite to the object and then add an event to the object called Step. I did this and then added the sprite to the room.
The GML code I used in the Step event is <...
0
votes
1
answer
1k
views
How are Tile Collision Slopes done in Game Maker Studio 2 / GML or in general?
I have been trying to get my slopes to function for almost a month now, doing nothing else with the project.
Rewrote it 6-7 times in different collision styles, sometimes coming close to success while ...
0
votes
1
answer
255
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"):
...
-1
votes
1
answer
88
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
0
answers
104
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 ...
3
votes
1
answer
481
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 ...
0
votes
2
answers
2k
views
When there are multiple objects of the same type, how do I know which one I am colliding with?
I'm working on a platformer game using Gamemaker Studio 2. , and currently I'm dealing with implementing platforms (those thin tiles that are able to pass through from the bottom, but remains solid ...
-1
votes
1
answer
319
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 ...