Hello. I'm newbie in Gamemaker Studio 2 and I tried to create my copy of Plants Vs Zombies. But when I build a game, there are always lags in it. The first appears immediately after launch, and the second when some objects appear. Yes, there are quite a lot of them, but not so much as to cause lag. Only 10 objects. If export it to .exe, the lags remain in the same place, I can’t do anything about it. Please help me with this and perhaps point out errors in the code that are bothering me...
Problem with random lags in the game
Problem with random lags in the game