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

Haveing problem just starting out

Last post 4/19/2007 7:53 AM by Fegelein. 1 replies.
  • 4/19/2007 7:03 AM

    Haveing problem just starting out

     I do everthing the video say when I hit debugg I get this message .............>Error 1 Type 'Spacewar.Game1' already defines a member called 'Draw' with the same parameter types C:\Documents and Settings\Gunny\My Documents\Visual Studio 2005\Projects\Spacewar\Spacewar\Game1.cs 114 25 Spacewar ...............Can anyone help>???

  • 4/19/2007 7:53 AM In reply to

    Re: Haveing problem just starting out

    Answer
    Reply Quote

    Allright,

    This error specifies that you have a method called Draw which as been declared twice. If you open en empty project, the body of the main game1 class already has some inherited methods suchs as Initialize, Update and Draw. You probably copy/pasted, or retyped a method and declared the method twice.

    Double click on the error message to quickly navigate to the method that has been declared twice, and comment it out by surrounding it with block comments (/* <method comes here> */)

     

    Good luck ...

     

    BTW. before starting out with XNA, it might be helpful to follow some simple tutorials on the C# language ..

     


     

Page 1 of 1 (2 items) Previous Next