Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

Draw script stops drawing sprites and other text elements after 1 update

A topic by TimVN created Feb 15, 2022 Views: 200 Replies: 3
Viewing posts 1 to 4
(1 edit)

I'm drawing a chat onto the screen, see below:

After I make a change to my code, it stops drawing certain elements of said chat.

The code is dead-simple. Draw GUI.gml

Any help would be greatly appreciated.

  • Runtime version: 2022.1.1.483. 
  • Target Platform: HTML5
  • Used extension: GMLiveForGMS2.3+.yymps
Developer
  • Does this work on native exports?
  • Are you getting any error messages in Console tab of devtools?

Thanks for your quick response.

This does not happen on native exports, but I really need this to work for HTML5 exports. No clue why I didn't check my console... It's throwing the following error:

Runtime error: [error] Script index must be a number, got `instance#1000003(oChatController)` (struct).

I found one comment mentioning this issue on your post on the YYG forums, but the fix/workaround does not apply to me in this case.

Developer

That would most likely mean that the issue is being caused by a bug in GameMaker runtime rather than something in GMLive code. If you can send me a copy of the project, I can take a look at whether there are workarounds.