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

Author Topic: Scale over a time  (Read 1136 times)

0 Members and 1 Guest are viewing this topic.

DrAdventure

  • Newbie
  • *
  • Posts: 8
    • View Profile
Scale over a time
« on: January 31, 2018, 03:26:53 pm »
I have a rectangle shape and i want to scale it to a given size based on a given duration. Any ideas?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Scale over a time
« Reply #1 on: January 31, 2018, 03:34:16 pm »
Use a float variable an sf::Clock and do what you want to do. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/