My game has been running smoothly as of late, but today, I decided to add a feature I'll include in some levels.
I added it, tested it, and it worked.
But I noticed that whenever my player goes above a certain y level in the game, it'll freezes, and I have to exit it, and re-load it.
The feature I added is a wave distortion, I.E, the screen distorts by moving side to side very slowly, giving a sort of "dreamy" feel.
I got the code from this topic.
I removed the Alarm[0] event, as I want the effect to be continuous, and I also changed the "amplitude", "frequency" and "precision" values to 5, and set the "_sp" to 340(so it's not as powerful, and slower).
The exact y level, I'm not sure of, but the player starts at the bottom of the level, heads to the left, and has to wall jump, then proceed to the right to reach the exit.
The final block of the wall jump, when it reaches it's y level, is where the game freezes.k
Thanks for your time, and any help would be greatly appreciated!
EDIT: SOLVED!
I made the wave effect fade out when the player hits the portal, and when the effect is gone, the surface destroys and the wormhole alarm is triggered.



Find content
Not Telling
