Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

[Solved] Old sprites not disappearing after room reloads - Gamemaker Studio v2.3

A topic by ShaubbyPlayz created Sep 22, 2020 Views: 377 Replies: 5
Viewing posts 1 to 6

After room reloads, the old object stays, and the new objects are added on top of that. Like if I were to move an object to the side, it would show the object where I moved it, and where it was before. Can anyone help with this?

Also, I bought this on the gamemaker marketplace but I could not see how to contact the developer there.

Developer

Hello! Were you the one to send me an email about this? (which I responded to)

The most obvious cause would be that either your objects are persistent or your live-room is persistent (via room editor flag or room_persistent).

You can also check if what you were doing matches up with the mini-guide I did https://www.youtube.com/watch?v=_35-xnHQE54

Ok, sorry about the email thing it said I could contact you within the gamemaker marketplace but it never game me your response. I think I will use itch.io from now on.

I don't think I phrased my question in a good way. so I will put it this way. Lets say I have this:



Then I changes the Q to an R and the 3 to a 5. It came out like this:


Do you know why this is happening? I hope I put my question in a better way this time.

Developer

Perhaps your UI object is persistent and thus you create another of it? You can check using the debugger ("All instances" panel)

If your drawing code is "live", I would also recommend checking that you did do

if (live_call()) return live_result;

and not just

live_call();

Thanks, it was the second one, I was putting live_call() instead of 

if (live_call()) return live_result