Jump to content
  • Advertisement

ReDespawn

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

100 Neutral

About ReDespawn

  • Rank
    Newbie
  1. I am getting the error "Object reference not set to an instance of an object." when I'm trying to run my XNA game. I'm basicly trying to sort-of make an engine so I load in textures using a class and manage all the sprites with another class. Here's my code: Game.cs: ContentManager contentManager; Sprite character; SpriteManager spriteManager; public Game() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } protected override void Initialize() { character = new Sprite(); spriteManager = new SpriteManager(); base.Initialize(); } protected override void LoadContent() { character.setTexture(spriteManager.loadTexture(contentManager, "CharSprite")); character.setPosition(new Vector2(50, 50)); spriteBatch = new SpriteBatch(GraphicsDevice); } Sprite.cs private Texture2D texture; public void setTexture(Texture2D spriteTexture) { texture = spriteTexture; } SpriteManager.cs private Texture2D loadedTexture; public Texture2D loadTexture(ContentManager cm, string asset) { loadedTexture = cm.Load<Texture2D>(asset); return loadedTexture; } (This is a simplified version so you don't have to look through 150 lines of code) What am I doing wrong?
  2. What is the UDK capable of? How much can you customize your game with UnrealScript? I'm thinking of making a game in UDK but I just need to know what you can do with it.
  3. Yeah, I have already checked out those tutorials but unfortunately, he has no programming tutorials... But they are great for learning level design!
  4. Edited to sound less dickish... Try Youtube. [/quote] I have found ONE tutorial series on programming on YouTube, which sucks and doesn't cover any actual programming in Source but rather how to setup a project... I am thinking of buying a membership on Design3. I'll get a whole bunch of other tutorials then
  5. I search everywhere for a good free Source Programming tutorial... With no luck... I've found Design3's Vechicle Programming Tutorial. But they cost money! Are there any otherones floating around the web?
  6. Hello, I want to get into game development. I have basic knowledge in both C++ and Java and now I'm thinking what I should concentrate on. I will be making mostly 2D sidescrollers and topdown games. But, I want to have a good foundation so I can start building 3D games in a few years maybe... Basicly I want a powerful, well documented, crossplatform(not THAT important) 2D and 3D language/library. What would you recomend? I'm thinking of continuing with Java to build games... But I have no clue if that's a good choice.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!