I thought it was the animations I had added but after removing all of them it still has the same issue. The motions of objects jitters and lags. When it happens the Frame Per Second is cut in half (or TimeDelta doubles). So now I have no clue why it does this. It does it on the editor and the web, both computers.
Can you provide screen shots of the project’s events? It’s impossible to tell what the issue is from the brief description you’ve given.
events are way way too long sorry. However it used to work fine. And the issue started after I modified and added many little changes that should not use much memory. At first I thought it was the animation I had added but then I removed them and it wasn’t that.
If I force the FPS (min and max) to be 60 then the game will sometimes just pauses for half a second. Same with 30. Something, once in a while must use a lot of memory or CPU or whatever you call it, right?
But this doesn’t make sense to me because the events repeat at each frame are always the same. I went through all the little changes I made and they are just little things. There’s nothing I can see. So I would like to search from the other end: what could make a game suddenly lags. I saw a lot of question on the forum about similar issues.
It seems the issue was a text box following the player. When the text is not following the player ( no change of position text in the events) then no bug. When the text follows the player (at each frame the position of the text is changed) then it bugs.
How can I have a text box next to the player character in the game without having this bug?
It’s a simple text, no behavior, no special font. Just the simplest text. Crazy
It depends on what the events around the text box are. Can you screen shot them?
You could use the sticker extension, and stick the text box to the player. It’ll keep the position relative to the player as the player moves, and eliminates the need to reposition the text every time.
what do you mean by events around? i just put one line saying “change position of text at x,y”
around are unrelated events
why would the extension not bug whereas my one line of event bugs?
thanks for your help, I’m really trying to understand the origin of this bug
I have no idea how you’ve coded the events, so cannot make a direct comment on the issue. So that’s why I’d like to see the events in question, and a few of those around it, in case they have some influence.
There have been many occasions where a dev claims to be doing something, and in fact they’re doing something a bit different or additional to what they think they’re doing. Not that I’m suggesting that’s what you are doing.
I like to see the events for myself to get an idea of what could possibly be creating the issue. Because I can’t replicate it myself in a small demo project.
I just realize a line is missing in my post and so it doesn’t state correctly the issue. Hence the misunderstanding. I will rewrite a post correctly. Sorry for the confusion!