Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

GMLive.gml

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

[Solved] Drawn sprites/text duplicated on reload

A topic by Makoren created 53 days ago Views: 42 Replies: 2
Viewing posts 1 to 3
(3 edits)

All I'm doing is changing the image_xscale and image_yscale values before reloading. The duplicated objects appear behind the originals. If you reload more than once, the duplicated objects are moved correctly, but the original stays the same.

I have live_call() at the top of the Draw event with the code I'm changing. I have obj_gmlive in this room, and the GMLive server detects my game successfully. The error persists even if I add sprite_set_live() in this room's creation code.

Any idea what I could be missing?

Developer

My guess is that you are doing literally just "live_call()", not "if (live_call()) return live_result", therefore causing both new and old code to run at once.

That's the solution, thanks.