Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: basic animation help  (Read 1797 times)

0 Members and 1 Guest are viewing this topic.

Bryston

  • Newbie
  • *
  • Posts: 8
    • View Profile
basic animation help
« on: March 16, 2013, 05:56:26 pm »
Hi, I've been having trouble with the forums search function so I'm going to ask in here.

I have a sprite sheet, 4 rows of 8 columns showing walking left/right/forward/rear

Can someone give me a quick example of how to 'animate' from the sprite sheet?

this is my very first totally newbie-ish time using sprites so please be kind :)


Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: basic animation help
« Reply #1 on: March 16, 2013, 06:09:54 pm »
Head on over to the SFML wiki. I wrote a class there, that gives you easy access to sprite animations. It is basic and easy to use. If you need something more sophisticated be sure to check out Thor. It provides a more complex API, but gives you more control.

Bryston

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: basic animation help
« Reply #2 on: March 16, 2013, 06:33:09 pm »
awesome, thanks, i'll get to work on it right now.
thanks a ton.

cheers!

Bryston

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: basic animation help
« Reply #3 on: March 16, 2013, 09:03:25 pm »
works great! now to try and work it around so that i can use it on the fly for movement for multiple entities in the game in multiple directions by using a variable for which way the characters are travelling.

thanks again