I am uploading the file right now.
you can find it here: http://www.playbird.at/sites/Bl4ckSh33p/soft/moonraccoon/MoonRaccoon_CodeExample.capx
A and D to move left/right, W to fire laser
OR Cursor keys
and SPACE to fire rockets.
I added a debugframe showing time in sec and fps and I noticed that FPS drop from 60 to 30 and below after about 40 seconds of gameplay. I added a few "trigger once" and global vars to try to reduce how many checks are made every tick but I assume it will be checked afterwards as well so it does not really reduce the amount of checks.
And when you fire a rocket with space the game is stuck for a moment as well. I tried to show the particles for it off screen on the title screen and it seemed to help a bit but its still happening.
Any idea why it starts to lag after a while? Bl4ckSh33p2013-07-27 19:01:28