Hi Everyone,
Youtube Video Showing Problem:
CAPX file if needed for review: CAPX
I'm having a problem with mirroring an enemy image. In the attached CAPX you will find that I am using the box technique on both the Player and the Enemies. Right now I am focusing on enemies and simple movement.
When the enemies hit the edge mark, they start to go the opposite way and the image is mirrored. The enemy always goes the opposite way without any issue but the mirroring part seems to break sometimes. In the youtube video you'll see a highlighted/glowing (was using debugger) enemy that seems to not mirror itself until it reaches the middle of the level, but it is supposed to mirror itself immediately after changing directions. Only one is doing that though, the rest are mirroring properly.
<img src="http://img823.imageshack.us/img823/3585/af27.png" border="0">
I'm honestly stumped on this one because the issue does not happen all the time. To recreate the issue, open the CAPX and preview the game. Create a couple of enemies (press the space bar) and eventually one will break. If one does not break, reload the preview and try again. Try to create the third enemy maybe 5 seconds after the first two.
One thing I did notice, it kind of looks like the broken ones end up mirroring when a specific other enemy hits the edge instead, is it possible that the instances got crossed somehow? It is weird though because the other enemy still mirrors properly itself, and when I check the debugger the IDs are all correct.
Any help on figuring this out is appreciated. I'm sure it is something simple but I'm just not seeing it, especially since it only messes up sometimes instead of all the time.
Enzan