Hello,
I am working on a game in Flash, and I started the project a while ago and just picked it up recently.
But back then I chose to use the flash engine Flashpunk to create the game, because someone told me it was very helpful for making a flash game. In the end I dont see much reason why I would use it ever again, because I could have done the same thing in Flash, next to that Flashpunk doesnt exist anymore so I cant find much specific information about developing for flashpunk anymore..
Now I almost finished the project before, but there where still some things left to do. I thought I already fixed the low fps issues, but I guess I did not because they are still there.
Now when i run the game the amount of entities always stays around 130 -300 entities (Including all particles) and the Memory seems to start at around 70mb and then increase to somewhere around 150mb, and then it suddenly goes back to 70 and starts increasing again. The FPS is 60 when nothing is happening, but when i start moving or when alot of enemies appear it can sometimes drop to 30-20FPS.
Its a simple game, apart from some enemies appearing and shooting them down nothing much is happening, also no difficult calculations or anything. I might be doing something wrong but I do not think my code is too heavy or something like that.
The game is playable, but I have a PC that runs most new AAA games on high settings, and a simple 2d flash game is slow when more then 10 enemies (which consist of 1 image and some sounds) appear... Does anyone have any tips or ideas what the problem could be?
Thanks in advance
Alexander