XNA Creators Club Online
Page 1 of 1 (8 items)
Sort Posts: Previous Next

I'm probably missing something basic.

Last post 06/11/2009 21:00 by Modeltrainman. 7 replies.
  • 05/11/2009 17:16

    I'm probably missing something basic.

    I have my background loading, but how do I load my player character? I'm on chapter 7 in Build a Program Now XNA Game Studio 3.0 by Rob Miles. I decieded to make a small game for practice.
  • 05/11/2009 23:35 In reply to

    Re: I'm probably missing something basic.

    Answer
    Reply Quote
    Assuming you're talking about 2D, both your background and character would both be sprites, so they'd be loaded in the same way - Content.Load<Texture2D>(@"MyFolder\MyAssetName");
  • 06/11/2009 3:58 In reply to

    Re: I'm probably missing something basic.

    Answer
    Reply Quote
    I would also have a look at the getting started pages in the XNA Documentation as there are some basics there that will help. Also you should make sure that you are drawing the sprites in the correct order, for example the background should be drawn first followed by the charcater sprites.
  • 06/11/2009 18:32 In reply to

    Re: I'm probably missing something basic.

    Thank you, BShields, Mr. Wilson.
  • 06/11/2009 19:44 In reply to

    Re: I'm probably missing something basic.

    How do I set a color as transparent in VC#?
  • 06/11/2009 19:46 In reply to

    Re: I'm probably missing something basic.

    Select the image file in the Solution Explorer. One of the options in the Properties box is to set the transparent color.
  • 06/11/2009 20:58 In reply to

    Re: I'm probably missing something basic.

    David Hunt:
    Select the image file in the Solution Explorer. One of the options in the Properties box is to set the transparent color.
    I don't see such an option. What is the name?
  • 06/11/2009 21:00 In reply to

    Re: I'm probably missing something basic.

    I found the solution, elsewhere on the forum.
Page 1 of 1 (8 items) Previous Next