solved

  1. T

    GML Sprite not appearing issue

    I'm having an issue relating to my sprites / objects not appearing. My issue: I'm trying to create a new object, the code is all fine. I place it in the room but it doesn't appear in-game. Other existing objects appear perfectly fine. I had a slight hunch that none of my new objects would...
  2. kpenrose92

    buffer_get_surface took 5 arguments, now it's asking for only 3.

    Has anyone else had this issue? My own code, and according to the Manual, have buffer_get_surface( buffer, surface, mode, offset, modulo ) -5 arguments. After updating Gamemaker to 2.3.1 my game won't compile due to wrong number of arguments. In the description, it now has...
  3. GonerBits

    Graphics Game Resolution - is 400 x 225 acceptable?

    Here's my situation. (Tldr at the end if you don't want to read) I'm making a pixel art game, and I've decided the amount of detail / sprite size I'd like. However, when making game resolutions, I've got a bit of a conundrum. Making the game 320x240 at a 4:3 ratio with 20x20 tiles provides a...
  4. J

    sprite is not where its suppose to be [fixed]

    hi,i am making this heart system and i've been following this tutorial... so far this is what i have done: var xoffset = 32; for (var i = 0; i < global.maxhp; i++) { draw_sprite(HeartEmpty,0,xstart+(xoffset * i),ystart) } for (var i = 0; i < global.hp; i++) {...
  5. F

    Shaders HLSL Question About Sampling and Float Summing

    Hi all, I've been messing around with HLSL and ran into some issues with sampling. Before I describe it all I already know how to get my test shader to do what I want it to do, but I'm extremely confused as to why it doesn't work when I try to do it a different way and would really like to know...
  6. Avram

    Helping making more efficient code

    Hi all, Is there a more efficient way to write the following code? If the enemy is hit with obj_fire_up then the enemy's health (blob_health) is decreased. I have five frames of damage for it to cycle through (e.g. health at 50, move to frame 01, health at 40, move to frame 02, etc.) Thanks...
  7. Floria Garden

    Android [SOLVED] Asking for help to get app working on Google Store

    Hi Gamemakers! I am a novice when it comes to game making. I was soo happy when I completed my first game, but now I am in the dark. I can't get my app to work on Google play store. I am doing internal testing on Google play console and when I install it to test it on my device, my app is...
  8. D

    SOLVED what is the purpose of fraction dumping?

    i am totally new to programming let alone gamemaker studio 2 i am learning from shaun spalding's videos too. and i came across this code in his video. i think i know what the code does (it is to subtract decimal part of the number??). but i dunno why it is necessary. hsp += hsp_frac; //why...
  9. G

    Parent error, Space Mods tutorial

    Hello everyone, I am currently following the "space mods" tutorial series. At the moment i'm at the "Space Mods - GML - Enemy Factions (2/3) - GameMaker Studio 2" section. Here exactly : I have a little problem, when I try to shot, my ship freezes and what I shot stays in place. The...
  10. G

    Windows Can't save files?

    Hi! I've been forced to move my files to another PC (because Windows 7 is no longer supported). But i'm running into a very weird problem that I don't understand or konw how to fix. I have a screenshot of the problem that i'd like to add here. Is it using the wrong path? And if so, how do I...
  11. ricardo1996

    Need help with Android os_is_paused()

    Im trying to send a network packet. Just before the onPause() is called. Ive tried using the os_is_paused(), but it only executes the code upon regaining focus. Is there any function, or third party extension that can achieve such a task, is the task even achievable? or i must try to create my own?
  12. B

    SOLVED Is there a operation that checks multiple variables for an output?

    To further explain, I want to create a tree of options that checks multiple variables. For example, it checks 3 boolean variables named, a, b, and c. (true, true, true) would output a number (true, true, false) would output another number (true, false, true) would output another different...
  13. Tzunami

    GML [SOLVED] Trouble writing .wav file into buffer and playing it back

    [SOLVED]: buffer_write needed to use buffer_u8 instead of buffer_s16. Hi all, I'm having some trouble in a project I'm working on when it comes to opening a .wav file, writing it to a buffer and using 'audio_create_buffer_sound' to play the sound from it. My code successfully opens the .wav...
  14. B

    How can you make an object with independent variables?

    The title is confusing but I don't know how else to describe it. I will try my best to simplify with this analogy For example, I have a bullet. I want to make it go a range of different speeds without having to make each speed its own object. My plan is to find a way to change the variable...
  15. G

    Keeping drawn weapon object in same relative position to airborne character?

    For my weapon code system, I'm using the following style of code to draw the melee weapon (based on the weapon sprite), continue drawing it in a brief swinging sequence, and then it is destroyed: draw_sprite_pos(sprite, subimg, x1, y1, x2, y2, x3, y3, x4, y4, alpha) It looks clean when the...
  16. carlosagh

    Previus room stays drawn in new room

    In my project i have an object that serves as a persistent manager object created in the game's intro, this object has some enums and macros inside its create event and has step event code and draw gui code dependant on the room. My problem is that when i change to the game room, the previus...
  17. L

    GMS 2 Turret rotation not centered(even with correct origin)

    Hello everyone! I am making a pixelated space game(my first game, if we are not including games following tutorials :D), and on top of the ship there is a turret mounted to it. I have set the turret to rotate towards the mouse using point_direction(mouse_x,mouse_y), and to follow the ship using...
  18. G

    Lacking follow through! (2-D SS attack animation woes)

    Hello again! So with some references on where to look to find stuff (Thanks, Felbar!) I've come a long way in the past couple weeks. I've integrated state scripts and my character's animations are where I want them except for ONE issue: Upon pressing the attack button, my character *still*...
  19. G

    GMS 2 Asymmetrical Sprite Jumping animation

    Hello! I'm learning 2-D platformer basics from Spaulding's recent GMS2 YouTube tutorial and it's been going well but I ran into a hiccup. My sprite carries a shield in his left hand so he looks different when traveling LT and RT. How could I modify this code to have the character face left...
  20. Kugua

    SOLVED Trouble with importing text from JSON file (returns "undefined")

    Hello! I'm new to gamemaker and still learning the ropes. I've been playing around with managing large amounts of text by saving the text in a csv file, converting to JSON, and then loading the JSON file in the game. Using v2.2.5.378. The problem I'm running into is that when I load the text...
Top