Trying to make a small Windows Phone game

Started by
1 comment, last by oldgregg 10 years, 10 months ago

Hey guys,

I'm trying to make a small Windows Phone game. I've recently changed my code to spawn the sprites on screen and it compiles fine.

However when I enter the game screen on the phone emulator. I get this error:

[attachment=16333:Capture.PNG]

I have literally no idea why this is happening.

Any help is appreciated!

Thanks!

Advertisement

Can you post the code of the loop? its Hardto see from the pic tongue.png

And make sure your not Modifying the collection "blueCircles" while you are enumerating over it.

Edit:

Upon close inspection are you doing the follwing under the exCEPTION BOX?


blueCircles.Add(new ColouredSprite(...))

this will cause it :)

I'm away from my laptop with this code on atm but thanks for the reply! I'll get back ASAP!

This topic is closed to new replies.

Advertisement