Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

XNA Basics - Movement Part 2

Loading...

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

Uploaded by on Mar 29, 2009

Another installment of the XNA Basic Training series. This tutorial will show you how to add motion to your sprite and restrict movement in order to keep the sprite in the game window. The next tutorial will add rotation and scale effects. Part 2 of 2

Project file - http://www.phstudios.com/tutorials/xna/BasicTraining/files/Movement1Complete.zip

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (Whiplashx86)

  • Lol difficulty in origin? It's the most basic of mathematical operations - translation. No you don't have to change your code in a lot of places. Maybe you have to change YOUR code and that's an obvious sign of bad design.

  • @kotapaka These are for people that are NEW to xna. I do not have a problem with the origin, I was just mentioning it to the new people that you need to be aware of it. And yes, you do need to change you code if you change your origin in the middle of development, because your graphics will be offset differently depending on the origin.

  • Followed you exactly and the CheckBounds() function had no effect. I'm using XNA 4.0 with C# in VS2010 Ultimate.

  • @RichhhR Send me a message with your code and I will have a look.

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • @Whiplashx86

    Never mind, I followed the XNA 4 tutorials on MSDN and then everything worked fine.

  • Using the XNA 4.0 tutorials on MSDN now.

  • Awesome tutorial. Subscribed

  • really, that helps, I got some bugs when my player gets in the corner and then dissapears somehow, but when I use these, player doesn't dissapear.

  • Nope, it doesn't really matter for now.... At the moment I'm following the tuts on the XNA website

  • Does it work now?

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