Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Error When Adding Sprites to a List Outside of the LoadContent() Method

$
0
0

@SpeedyTurtlez wrote:

When i try to add sprites to a sprite list from anywhere other than the LoadContent() method, it crashes. The error message is:'Collection was modified; enumeration operation may not execute.' I think I understand what this means, but I have no idea why it is showing up. I'm using the sprite class from Oyyou's tutorials, if you were wondering.

Do you know why this is? If you need more code, just ask. Any help would be appreciated! :smiley:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821