2 Replies - 960 Views - Last Post: 06 April 2012 - 03:25 AM

#1 bjmoreton  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 14-July 11

XNA Sprite Movement

Posted 03 April 2012 - 05:41 PM

Hello I am trying to make my sprite move a bit better than what he is right now. His legs move like a million miles an hour! Haha, I have no idea how to tone down the movement or control his frames? If someone could help that would be greatly appreciated. I tried multiple things and nothing I did worked.

The project can be foundhere
Thanks
Richard Moreton

Is This A Good Question/Topic? 0
  • +

Replies To: XNA Sprite Movement

#2 bjmoreton  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 14-July 11

Re: XNA Sprite Movement

Posted 03 April 2012 - 07:11 PM

View Postbjmoreton, on 03 April 2012 - 05:41 PM, said:

Hello I am trying to make my sprite move a bit better than what he is right now. His legs move like a million miles an hour! Haha, I have no idea how to tone down the movement or control his frames? If someone could help that would be greatly appreciated. I tried multiple things and nothing I did worked.

The project can be foundhere
Thanks
Richard Moreton



Alright nevermind and sorry for this can just delete it or something. I found the tutorial locatedhere.
Was This Post Helpful? 0
  • +
  • -

#3 DanielLeone  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 177
  • Joined: 04-February 12

Re: XNA Sprite Movement

Posted 06 April 2012 - 03:25 AM

If your'e referring to animation, and not actual movement logic, there are some tutorials on this website as well as heaps on the general internet for animation script.

I looked through your code, and realised you are using a Point for currentFrame. Never seen it before but whatever. In your code where you have ++currentFrame.X; wouldn't this just increment the frame every frame :).

Don't really understand how it works, but I hope I've helped.

This is also a video I have watched on Animations.
http://www.youtube.c...8oi_G0imm9Ro%3D

If you want I can post the Animation code that I made?

Hope I've helped in some way,
Daniel,

This post has been edited by DanielLeone: 06 April 2012 - 03:26 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1