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

Author Topic: Tweening support  (Read 2804 times)

0 Members and 1 Guest are viewing this topic.

blockh34d

  • Newbie
  • *
  • Posts: 3
    • View Profile
Tweening support
« on: July 16, 2012, 05:43:37 pm »
if SFML had integrated tweening support that would be very helpful...  the greensock tweenlite library for actionscript is a good example, if we had that functionality available in SFML, animation would be much more simple to setup.

Thank you for an excellent library and all the hard work you put into it!

If I implement my own tweening system I will post the code, if it helps.  Off hand I think a vector of goal transformations along with the time it should take them to get to the goal, a high precision time counter, and an array of function pointers (one for each type of transform, rotation, scale, etc) should just about do it.

Again thank you for all your hard work.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10927
    • View Profile
    • development blog
    • Email
Re: Tweening support
« Reply #1 on: July 16, 2012, 07:16:09 pm »
I guess it's a nice feature, but I can't see hiw this would fit into the library. SFML doesn't provide any 'native' function for animation thus it would be kind of odd to provide tweening functionality. On the other hand this is a 'highlevel' feature something that makes it easier to work with animation but is actually not really need or can be build on top of SFML. I see SFML as a library that provides basic functionalities in a way that without those functions you wouldn't be able complete your task.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Tweening support
« Reply #2 on: July 16, 2012, 08:35:46 pm »
Laurent Gomila - SFML developer

 

anything