It will run perfectly fine again if I restart the room, but continues to lag again the more enemies I kill. I have doubled checked my code for any overflowing variables, and have subsequently found none. Any help would be greatly appreciated.
Creation code for powerup.
i=random(360) gravity=.05 hspeed=random(1)-.5 vspeed=random(-.5) peef=0 fry=choose(1,0) ic=random(10)
Destroy code for powerup.
repeat(5) instance_create(x,y,Oallef); sound_play(sebuz); i=0
Step code for powerup
if i>360 i=0 if i<0 i=360 if fry=1 i+=ic if fry=0 i-=ic
Download link: http://sandbox.yoyog...-monogatari-iko
(controls: arrow keys left right move character, arrow keys up/down aim, z is jump, x is fire. R restarts room if you die or overcome by lag)
Edited by mn_beta, 27 April 2012 - 06:15 PM.











