Hey guys!
Yesterday i started to learn a litle bit C# to create games with XNA but when i try to run my code i get some problem that i realy don't understand whant am doing wrong..
Here is before i compile it, you can see my code i load the picture from its folder..
http://tinypic.com/r/b6at8k/7
And here you can see the message i get when i try to run the code.
http://tinypic.com/r/5bab02/7
Please tell me what i did wrong..
Problem with c#
In your C# code you wrote 'sprite/oskar' and your folder in the project is sprites/oskar, with an S.
I guess this just needed a second pair of eyes to glance at it :-)
I guess this just needed a second pair of eyes to glance at it :-)
Your sprites folder needs to be under the content project, not the code project (move 'sprites' folder to the one at the bottom of your workspace, titled 'oskargamecontent'). If you don't put assets here, the content pipeline cannot process them and turn them into xnb files, so they won't be found.
Notice your solution has two projects: oskarGame & oskarGameContent. The content needs to be in oskarGameContent.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement