• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

asynchronous

  1. Ricardo

    Sprites asynchronous loading

    I’d like to start a discussion about asynchronous loading - especially when it comes to sprites. A lot has changed since the first iterations of GameMaker when all the project resources were loaded and thrown at RAM (and VRAM), but there are still a few key issues that are a limiting factor...
  2. Ricardo

    Job Offer - Programmer Asynchronous sprite_add with local files

    Hi there, I'm looking for a programmer capable of hacking sprite_add in a way that it can load local images completely asynchronously from the Included Files directory (as it happens when passing an URL to the function instead of a local path). Currently, sprite_add locks the main thread and...
  3. GonerBits

    SOLVED How to get players to access an INI file from the internet?

    I'm trying to do something a bit strange with Game Maker, and I'm not sure if it will work. Basically, I want to be able to make an INI file, host it somewhere, and have the game read from the online version. Then I could update the file, and the values shown in the game would change to reflect...
  4. C

    Async atomocity?

    I am making a multiplayer game. Client #1 is constantly scanning for instances of object X. Client #2 asynchronously destroys one of those instances after it was already read on client 1. Then I get an undefined error when trying to reference it because that pointer obviously points to a...
  5. If Programable_Matter

    Error when working with JSON

    I've been uploading json files unto a webserver and had no problem with them on game maker... for some reason I now keep getting this error with a new project I have started : json_decode argument 1 incorrect type (undefined) expecting a Number (YYGR) Create Event http_get("website.json")...
  6. B

    Looking For get_string_async Tutorial

    Can anyone recommend a tutorial for using the get_string_async function? Thanks in advance, Bill
  7. J

    Windows [SOLVED] event_type in asynchronous System Event only returns 7

    I am trying to write a gamepad detection with an asynchronous system event in GMS2 but instead of "gamepad discovered" or "gamepad lost", I only get undefined when reading the variable event_type. Nonetheless the event is triggered when I connect or disconnect a controller. It's only event_type...
  8. Posho

    HTTP Call-Backs Without Asynchronous Events

    Hello. This is a pretty odd issue I have but I need to find a way to use HTTP functions, call-backs and/or functions like async_load without actually using the Asynchronous Events. I've tried using the event_perform() function but there are no event_type names for any of the Async Events...
  9. N

    json_decode argument 1 incorrect type (undefined) expecting a Number (YYGR)

    I get the error: I request with http_get using this code: if (!requested) { // inside draw event http_get('http://gmscoreboard.com/handle_score.php?tagid=mytagid&getscore=1') requested=true; } And this is in the HTTP event (WebAsyncEvent) if (!ready) { // inside HTTP...
  10. C

    Legacy GM Whitescreen, then switch to windowed mode

    My game starts in full screen mode. When the player runs out of lives it seems to switch from full screen to windowed mode. I also think there's some kind of error since I get a white screen for a second before it switches to windowed mode. Death happens when they player collides with another...
  11. Cloaked Games

    GameMaker [SOLVED] Save/Load Last Used Gamepad Port

    Hello. I am working on gamepad support for my game. I have code right now that uses the system event to check when gamepads are connected and disconnected. It chooses the most reccently connected gamepad when a new one is plugged in to be the active gamepad. If the current gamepad is removed, it...
  12. G

    Read out HTML Text

    Hi there! I try to read out some text from a HTML Document on a Website, which is not hosted by me. Is there anyway to do this? The Application should run in Android. - Greetings
  13. R

    Legacy GM Buffer error with recieving

    Hello! I have an object named o Client. It connects to the rever without problem. I have an oServer object, wich is the server, and accepte o Client's connecton without problem. I want to send packet from the Client, but i I set up the recieving in oServer's Async Networking event the game...
  14. YoSniper

    [SOLVED] Making a music track loop at a specific point

    Hello community, Just for a frame of reference, I want you to understand what I'm trying to do. I don't know if any of you ever recall playing Primal Rage on the Sega Genesis or SNES, but if you ever went into the Sound Test menu and listened to the background music, you would notice this...
  15. M

    IAP Google play

    Is there anyone willing to check out my game and my code and see what I'm doing wrong with my iaps ? I will mention your brand in my description in the google play store :-) https://www.teamviewer.com/en/download/windows/
  16. J

    error: variable not set before reading

    I have a timer with a GM dialog with buttons for "OK" and "Cancel." The dialog pops up at the start of the timer, from the create event of obj_user_input. It asks the user to input a desired number of minutes. If I click OK, nothing bad happens, but if I click cancel, I get an error saying a...
  17. Binsk

    Free [Source] Fake Async Loop System

    This was an idea I had at the back of my mind for a while and so I whipped something up really quick and wanted to share it. You can download the project with the script and object here. What this does is allows you to fake asynchronous behavior with long computation-heavy loops. I kept the...
  18. D

    GameMaker Async Save/Load event not calling when room restarts

    Hi there! I'm having some trouble loading audio groups when my room restarts. I have one object (kind of an "asset loader") which launches a series of "audio_group_load" calls in the "Create" event. Then, using an "Async Save/Load" event I check when all the audio groups have been completely...
  19. K

    Discussion Will it be possible to get a "script_execute_async" function?

    I ask because some tasks should just be run in the background as they take a while, and this could allow us to capture the progress and display a real time (adjustable) progress bar and not lock up the UI thread. I would assume we would need our own async event to handle this as well.
  20. A

    Async_load status error?

    Hey folks. This is my first time actually posting on the forums so please forgive me if I fail on any local forum customs or something haha. I'm trying to set up asyncronous multiplayer using http_post_string() & http_get() calls. I use the following code to make the call: get[0] =...
Top