XNA Tutorial 20 - 2D Camera

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,805
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 26, 2011

I'll be showing you how to get a camera to follow your character, this is as simple as I could possibly think of.

This is my last video until after Christmas.. Or something, I haven't decided yet.

Thank you, kind folks :3

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (oyyou91)

  • Thanks for the tutorial this is exactly what I'm trying to do! For some reason it doesnt like the camera = Camera(GraphicsDevice.Viewport­);

    I get two errors, 'FarseerPhysics.HelloWorld.Cam­era' is a 'type' but is used like a 'variable'

    and An object reference is required for the non-static field, method, or property 'Microsoft.Xna.Framework.Graph­ics.GraphicsDevice.Viewport.ge­t'

    any advice you could give me would be amazing!

  • @culzy20 You're just missing the word "new" is all.

    camera = new Camera(GraphicsDevice.Viewport­­);

see all

All Comments (33)

Sign In or Sign Up now to post a comment!
  • Thanks a ton dude! I tried so many other camera tutorials after I couldn't figure out my own and yours is the only one that actually worked!

  • I fucking love you. Been trying to do this in my uni coursework thank you!

  • How do I make the camera stop moving beyond the edges of my level?

    Can you make a tutorial?

  • @oyyou91 Could you send me the source?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more