Hello, my game is starting to lag a lot and it also takes quite a long time to load. I’ve been getting rid of unnecessary objects and events to try to make it faster. I have a few questions about this:
If I make events say “trigger once” will that help the game run faster? I was thinking that maybe some of these events are trying to run all the time and slowing down the game. For example, I have lots of inventory slots and when each one’s global variable is a particular number, it changes the animation of the slot. Would adding “trigger once” to all those events help speed up the game?
Another thing I realized is I have some animations with many frames that all have the same image but with different file names. For example, if I were making a character blink, I would a copy a frame numerous times in Pixel and then eventually make a new frame that has the image change to the character with its eyes closed. There would be many images of the character with its eyes open, and even though they all look the same, they would have different file names. Does it make a difference to the run speed if I make the animation use less files even though the number of frames is still the same?
My last question is I have a lot of files in my game folder which are no longer relevant to the game such as sprites that are not used and older versions of my game (I frequently re-save my projects with new names because sometimes my projects get malformed and cease to open). Does the amount of files in the folder effect how long it takes to open the game and how fast the game runs? I was thinking when I’m done making my game more efficient I can save it into a new folder that has less irrelevant files but I’m not sure if this would make a difference.