Why did my project randomly just slow down?

My project was running fine, but then I tried to do one of those jumping blocks by making a "for i" block change the y value, and even thought it worked fine in practice, when I actually made the block I found that the timing was too slow. Additionally, the other functions in the project seem slightly slower.

I (or anyone) cant help you if you don't give he project link.

I am referring to the shockwave block. It seems to work fine when the game is paused, but it's much slower otherwise.

Where can we find your "shockwave" block?

It is in the purple section, towards the bottom. You might have to take the parts out of the block and click on them once they are in the script, since it's conditional

when i try to run the project i get huge lag spikes. it's not from any of the player actions, it's from the prototype enemy script checking if it's touching colors. i would suggest switching it to check if it's touching a sprite instead.

checking for color touches seems to copy the images of all the sprites every frame and snap has so many objects it takes forever to sort through and find all the unused images.

Thanks! That worked.

You should probably mark sarpnt's answer as the solution (button on the post).

good idea

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.