javascript

  1. G

    .js file in HTML extension not loading

    Hello everybody, I'm trying to extend derme302's great three.js wrapper for HTML 3d (https://github.com/derme302/gms-j3d) with a function to import .gltf files. I've put this code: // J3D GLTF LOAD import { GLTFLoader } from 'GLTFLoader.js'; function j3d_gltf_load(pathToModel, scene) {...
  2. A

    HTML5 About Saving Data in Html5 Version

    Hi, I am developing a game for pc but i want to make a web version to publish on itch.io but i guess i can't access ini files in web version, how can i solve this issue in web version. Edit: I posted this in the wrong place, please move it to the right place.
  3. angelwire

    Job Offer - Programmer Looking for experienced HTML5 developer to help fix bugs [Paid]

    I've developed an HTML5 game targeting mobile web browsers. The game is essentially complete, but there are issues with the game crashing while running on iOS web browsers. I cannot solve the issues due to personal time constraints. I'm looking to hire someone who has experience with...
  4. jobjorgos

    Legacy GM How to send variable over from GM to online Javascript file with 'http_post_string'?

    I need instance variable online_players to be send over from GameMaker to players.js on my website Too bad with the code below there has not anything been updated yet in the players.js file. Alarm[0] Event: http_post_string("http://example.com/***/***/players.js"...
  5. Vlad_

    SOLVED How do I change the standard load screen in HTML5 game?

    Greetings to all. I'm developing a game in HTML5. How can I change this standard loading screen? I have already created a simple JS extension to update the page. And I noticed that the extension works from the very beginning of the game until it loads. I got an idea to make a JS extension that...
  6. dandandandan

    GMS 2 [SOLVED] Hiding an object in a room

    I thought this would be so simple but I can't figure it out. I've got an object that I've placed in a room. Not with a script, just plopped it into a room. How do I reference it? How do I get its index? I just want to hide the object by clicking on another object, using...
  7. Drell

    Legacy GM HTML5 Download Image

    I'm developing a board game that encompasses deck building, so I've built a deck builder which uses surface_save to create printable pages to test out different deck builds. Because some of my team uses Macs (and I don't have one), I'm trying out using an HTML5 build to be used across systems...
  8. sutee

    HTML5 Replace/Extend index.html to allow Fullscreen. Also, Retina Support

    I am new to game maker, but we just switched to it for an html5 web game project. Maybe still having trouble navigating the documentation, and couldn't resolve these issues: My HTML5 game should run both on Desktop and Mobile Browsers and have the option to go full screen. Now, I've been...
  9. FrancisClase

    HTML5 javascript native drawing functions on a GML surface

    Is there a way to use the native javascript drawing functions in a GML surface? I am creating an on-screen drawing game and I would like to be able to use the native javascript functions to draw, since the stroke and performance are perfect ... if I had to implement a drawing algorithm with...
  10. Xalezar

    GML [SOLVED] Is it possible to execute javascript dynamically through GML?

    For example, say when the player clicks on a button in my HTML5 game, is it possible to execute a javascript function at that point in time?
  11. D

    HTML5 Readable meta comments and strings in .js file

    I just realized the 'gamename.js' file exported with the HTML5 build doesn't strip out meta comments (like ///@description, ///@param, etc) and it doesn't obfuscate strings in general, leaving a lot of readable content like resource names, logs, translations, urls, and other potential sensible...
  12. remka

    Small tool to create a tile sheet from an image

    TL;DR: I made a small script that takes a grid-based image as a parameter and creates a tile sheet, getting rid of all duplicated tiles. I am more of a designer I guess, so when I am working on tile-based games, I often work directly in Photoshop, copying and pasting tiles when they already...
  13. Ayziak

    HTML5 JavaScript errors when testing HTML5

    Hi All! I've just started trying out HTML5 testing, and I'm having a bit of trouble... When I launch my game, in the browser, a loading screen shows up, but then the screen goes blank. The debug looks normal, however, the browser console displays the same error, repeatedly and indefinitely...
  14. A

    html5 game local storage

    Hi, so I have a html5 based game and I need to save information in local storage when someone win the game. The thing is that I have no idea how to do this. I'm using game maker 1.4, please help. Thanks in advance
  15. matharoo

    HTML5 [HTML5/JS] Loading image from a URL

    I want to load an image from the Discord CDN, like this one. Currently the only way I know is sprite_add(). If I use it, I get this error in the web console: So, is there any way to fix this, or another way to load the image? Maybe it could be done through JS and then passed to GM? I don't...
  16. T

    HTML5 SCRIPT5007: Unable to get property 'gain' of undefined or null reference

    Hi, I tested my games build on Internet Explorer and got following error on each frame The error comes from following function // release build: function _9e(_Y01){if(_Y01==0){return _b_.gain.value}return 0} // development build function audio_get_master_gain(_C01){if(_C01==0){return...
  17. alexhinton

    HTML5 Kongregate API and extension issue.

    I have a game up on kongregate.com currently with the kongregate extension implemented into the game code per this tutorial: https://help.yoyogames.com/hc/en-us/articles/216753988-Integrating-The-Kongregate-API-In-HTML5-Games. I have followed everything properly (as far as I can tell) step by...
  18. Samuel Venable

    Asset - Extension Microsoft Script Control

    This extension is [strictly] Windows-only. This extension is 100% free, open source, and public domain. Execute VBScript and JScript, (using Microsoft Script Control). You may execute the code you write within the GMStudio IDE. You may also execute the code from a given *.VBS or *.JS file...
  19. B

    HTML5 How to put textures in the javascript file (.js)

    Hello, I would like to put the sprites directly in the javascript file (.js) Is it possible ? Thank you in advance.
  20. B

    [Solved] Creating a JavaScript Extension

    I'm having trouble getting my JavaScript extension working. It's my first one, so I'm starting off super simple: I want it to print the word "Left" to the compiler window when I hit the left arrow key. The entirety of the JavaScript file is function return_left() { return "Left"; } In the...
Top