Sign in to follow this  

Trying to make a small Windows Phone game

This topic is 1674 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

 

 

Share this post


Link to post
Share on other sites

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 :)

Edited by Andy474

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

This topic is 1674 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this