Questions tagged [game-maker-studio-2]

GameMaker Studio 2 (often called GMS2) is a 2D game development IDE. It is the next iteration of GameMaker: Studio, developed and published by YoYo Games. Use this tag only if your question relates to IDE operation, features and game development in GameMaker Studio 2.

GameMaker Studio 2 (often called GMS2) released early 2017, is a 2D game development IDE. It is the next iteration of GameMaker: Studio, developed and published by YoYo Games.

The IDE features Drag and Drop (DnD™) code blocks for easy programming, or a fully fledged code editor using GameMaker's proprietary language GML (GameMaker Language).

The IDE also comes with a full suite of art, object and level design tools and editors, allowing full game creation without the need of any external software.


Resources

196 questions
1
vote
1 answer

Game Maker Studio 2 get_string deprecated

I am trying to ask the user for a name to put into my highscore table. I do not want to use get_string_async because then it adds a the name and score before the user has even given a name, however get_string does not work because it is…
Jojo197
  • 15
  • 5
1
vote
0 answers

Game Maker Studio 2 : Android : Error in NDK : setup-app.mk

In Game Maker Studio 2, when trying to build for Android, I am getting the following error : ClangExeLocation=/Users/../Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ Using NDKDir =…
kris
  • 11,868
  • 9
  • 88
  • 110
1
vote
2 answers

sprite_index not working gamemaker studio 2 (GML)

I have a small script that changes the sprite index when I press a certain key. if (key_right) { sprite_index = playerRightSpr;//<------------- image_speed = 1; //| } …
1
vote
1 answer

Can't edit object variable from a seperate script

I'm just trying to change a simple object's variable from within my script. The code runs but does nothing to change the variable. Editing this variable should lower the enemy's health bar, but it does not. If I edit this variable from within the…
tbunreal
  • 181
  • 1
  • 1
  • 8
1
vote
1 answer

GUI text is moving along with the player

The video attached shows the issue, the code controlling the ammo count, and the viewport/camera properties. I would like the ammo count to stay in place, rather than moving with oPlayer. I'm new to Game-maker and game development in general, this…
1
vote
1 answer

How to make a object follow another object around walls game maker language

So, i want an object to follow another one. But if the player object gets to far ahead the other one gets stuck behind a wall. So if you go round a corner and the following object gets trapped because it cant follow you since its trying to move…
Skye
  • 15
  • 1
  • 6
1
vote
0 answers

Game Maker Studio 2, Google Cloud saving

I have been trying to get Google Cloud saving to work in GSM2 but every time I hit load or save -buttons, the game crashes with "app has stopped working" -message. I am following this tutorial:…
1
vote
1 answer

Object won’t change sprites

I’m working on a 2D Platformer Game in GMS 2 and my player object won’t change sprites when I push the buttons that are supposed to make him change to his shooting and crouching poses. I have tried putting the different poses into different sprites,…
user8116739
1
vote
0 answers

GameMaker Studio 2 Click-Drag Tile Selection

I would like to implement a simple way to select a section of a tilemap, though I'm stuck on the math of updating the selected area as you drag. I spent about 12 hours reasearching and trying different things to see if I can get this to work…
Searous
  • 11
  • 4
1
vote
2 answers

Why is there a "ghost" of the sprite stuck in the background? GMS 2

So I'm making a game in game maker studio 2 and it's kinda like football but with flying. I just made the movement and jetpack controls and last night it was working but when I booted it up this morning, this happened. Normally when you move, you…
Cyan Coder
  • 37
  • 8
0
votes
0 answers

Memory leak after deleting a sound buffer

Here's my problem: In my game, I want to have a mini game using a microphone, à la Zelda Phantom Hourglass or Wario Ware. So far, it's globally working. I think I manage to make it work. But, there is one problem that I couldn't solve: when I try to…
0
votes
1 answer

Timer variable not counting down in GameMaker Studio 2

I want to add a little timer so there's a delay when warping between rooms so a sprite animation can play for the player, but for some reason my timer variable isn't working and I don't know what's wrong with it. Here's the code, this is in a…
0
votes
1 answer

How to draw sprites on an arc pattern in GMS2?

I've been trying to get this concept UI design working in the game: Concept UI Design I got the health display just fine. Then I tried to add the orbs in and here's how far I've got it so far: What I've got The orbs are getting drawn in the correct…
0
votes
1 answer

How do I save the player progress in a level progressing game in gamemaker

my game in gamemaker consists of various rooms which are levels and you go on progressing, so imagine im in level 7, and I leave the game, it obviously goes back to room 1, im using the coding language of gamemaker btw.Also the only thing I have to…
0
votes
1 answer

How to use the 'with' function with an array on gamemaker

I made a 2d array that stores the id of many different instances but whenever I run a specific number in the array the game just freezes. This is my code: with global.square_locations[1,1] { instance_destroy() } Btw this is what square_locations…
1 2
3
12 13