Thanks @Technorati! :)
NicolaasJKotze
Creator of
Recent community posts
https://github.com/Kodiqi/WindowFocusThank you @PelicanPolice!
That information pointed me to a direction. I can confirm that I have the same issue on my Linux machine an Chrome, however things work fine on my Win8.1 machine.
The good news is, I found some sources that point to causes and solutions.
Basically, some say it's something YoYo Games did in their patch sometime since November 2020. Someone mentioned that a workaround is to programmatically set window focus somewhere somehow someway. I will investigate and if it works, I will spread the news. :)
https://www.reddit.com/r/gamemaker/comments/kfs5cs/keyboard_inputs_no_longer_wor...
https://www.reddit.com/r/gamemaker/comments/lcbyii/html5_game_embedded_in_browse...
Thank you @Vintro Studios
Appreciate the feedback!
Yes, I agree. I am already making doodles of some of these improvments.
Having more GUI would have been nice eye candy. However, since this was my first real effort with GMS2, and a GameJam, I pretty much continuously redefined my scope as I discover time vs complexity. The age old engineering challenge - Work with constraints, hence the "MVP Edition" writing in the title. :) The game must be stable and the core mechanics to make it entertaining.
Hi @PelicanPolice
Which keys did you use and which browser? Your feedback will be extremely helpful to us GMS users to pin down the pattern of this "feature". :)
In the menu the keys are Up, Down, and Enter keys.
In the game (if the player did not disable Mouse in the Options Menu), the keys are:
Move : WASD
Shoot : Left Click with Mouse
Aim: Mouse
If anyone knows a workaround other than to quickly click on the game area during load, I think a lot of people will appreciate it. :)
So, I have been investigating why my music does not play in HTML5 but does in Desktop Test. This forced me to disable the code blocks regarding music for the submission.
During HTML debug you might see an error in the debug log "audio_play_sound failed. WebAudio Context suspended - user must interact with the page before audio can be played."
Found a YoYo Games forum topic about this.
https://forum.yoyogames.com/index.php?threads/audio_play_sound-failed-webaudio-c...
Tested on OperaGX LVL2 (core: 76...), Chrome 91, FireFox 89, IE11 (yea, lots of performance issues too).