You may have seen something similar in previous posts. I have brought aspects of the game to the forum a few times but i'm struggling a lot on this one issue that i can not seem to solve, even with the suggestions people have offered.
Basically I have a game where a square has a different colour on each side of the square. The square then rotates to the oncoming enemies to match up the colour of the side with the colour of the enemy......simple.
The problem i'm having is only after exporting the project. On the computer everything runs smoothly but after exporting the project through android(into intel xdk) or through cocoonJS the results are the same. The problem is...........
when the enemy collides with the same colour side, it gets destroyed. When it gets destroyed it freezes for a split second, making the game look very un-smooth because of it.
If you have any idea why this might be happening i can always send over a image of the capx to try and help. I should note the following in case it is relevant
- all the images are small size so that can't be much of an issue
- i've exported using intel xdk and cocoonjs, which both had the same issue (cocoonJS was slightly better).
- when the enemy collides 4 events happen
(1) A noise i made
(2) 1 is added to the score
(3) enemy destroyed
(4) Sub event > "is animation playing" > "enemy 1"
- enemy speed increases every 1 seconds
just to show that not a whole great deal happens when the enemy gets destroyed so it isn't processing excessive amounts
Thank you so much!!!!!!!!!!!