solved

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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*...
  8. 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...
  9. 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...
  10. kpenrose92

    SOLVED keyboard_check_pressed(ord("K")) will not return 1 while keyboard_check(ord("S")) returns 1

    Is this an issue that has come up for anyone else? I'm on Windows 10 using GMS version 2.2.5.378 I'm guessing it is Windows-related, because I've tried many other combinations of keyboard_check and they all work fine. For some reason while the 'S' key is down, gamemaker doesn't recognize the...
  11. VentKazemaru

    GMS 2 Trying to figure out pikmin style unit selection

    In pikmin, You can either throw the next pikmin you have in line. Or you can press a button to only throw a specific type. I've been having a hell of a time how to implement this. In it's basic form. I need to figure out how to select specific and any unit in a group. ds_queue does work...
  12. G

    Android / Amazon Fire [SOLVED] Problems with android build - help!

    Hi, I've been trying to compile my game to android and it keeps giving me this error log What went wrong: Execution failed for task ':com.gumbosoup.colorsnakesmash:processDebugResources'. Android resource linking failed W:\com.gumbosoup.colorsnakesmash\src\main\res\layout\download.xml:13...
  13. monsieurGrignoux

    [Solved] With working In the create event ?

    HI, I was wondering if the with statement is working in the create event. Seems Like not ... but not sure of my code...
  14. Chris Smith

    GMS 2 Game Sometimes Runs/Doesn't Run/Only Runs Audio

    Greetings friends, Out of nowhere my game started to fail to run, even though the output window doesn't show a failure. It sometimes doesn't reach the main loop. But sometimes it does reach the main loop, but only plays the audio. Sometimes it runs fine. Everything was running fine, until I...
  15. Chris Smith

    GMS 2 No Error, No Memory Leak, But Getting Visual Issues (video included)

    Hey all, I have a room set up, to randomly generate blocks, then when you exit out the left of the room, the blocks delete, and fill the room again, and you get teleported to the other side of the room so simulate entry into another room. However, this works up to the point of loading the...
  16. S

    [Solved] Continually increase/decrease lengthdir y/x values

    Hi All, First post here and I need your expertise. I'm trying to make a 2d shooter following some spielding tutorials on youtube with modifications along the way. Currently i have the gun object using recoil with lengthdir x/y while also using mouse point direction for the image angle of the...
  17. funkygallo

    GMS 2 [solved] Strange warning when using YYC

    Ok I have this function ///sin_oscillate(min,max,position) return((argument[1]-argument[0])/2 * dsin(argument[2]) + (argument[1]+argument[0])/2); when compiling with yyc i have this warning Z:/prj1_D2CE6B5B/totre/default/Scripts/llvm-win/gml_Script_scp_sin_oscillate.gml.cpp:19:23: warning...
  18. ZaHee

    GML [SOLVED] How to make the camera move whenever an object leaves the camera viewport?

    In the game I Wanna Be The Guy, whenever you leave the screen, the camera instantly moves to the next screen. Here's a video as an example. (the best example is at 5:03) What I'm trying to do is making it to whenever the player leaves the screen, the camera instantly shifts so that the next...
  19. Antikore

    Legacy GM [SOLVED] sprite_save is not saving sprites

    I'm actually making a game. When you play it, at the start, a starting code runs for creating base files and stuff that will be needed when you're in the game. While all things work properly I think, the part that I save a few sprites to one of the folders isn't working. These files are saved on...
  20. GonerBits

    GML [Textbox System] Help changing text color mid string / shake effects?

    (I'm a total beginner to this, and this is my first time posting to here, so sorry if the formatting / code is kind of messy... I don't know what i'm doing haha) I'm trying to make a text box system that allows for shaking text and changing text colors (preferably in a gradient) kind of like...
Top