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

2D Camera Problems

Last post 05-13-2008 12:01 AM by David Hunt. 1 replies.
  • 05-12-2008 10:33 PM

    2D Camera Problems

    Hi im trying to create a 2D Camera for my sidescroller type game, right now it moves based off the position of the stick figure on the map, now this may seem like it would work and it does in a way, right now it moves as i move the character but to slowly so eventually the character leaves the Viewport of the screen and you just have a moving background and the character somewhere off either X direction depending on where I moved him.

    Now ive done some research but the only techniques i have found are using Vector3 Matrix views and such but my character and everything else are Vector2, i realize now that these would have been a better choice in the beginning but i am on a deadline and i cannot change everything.

    Any ideas or suggestions would be appreciated, Thx!
  • 05-13-2008 12:01 AM In reply to

    Re: 2D Camera Problems

    Have you looked at the Tiled Sprites Sample? It implements a 2D camera that may work for you.

     

Page 1 of 1 (2 items) Previous Next