Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Scale over a time
Print
Pages: [
1
]
Author
Topic: Scale over a time (Read 1109 times)
0 Members and 1 Guest are viewing this topic.
DrAdventure
Newbie
Posts: 8
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?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11016
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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Scale over a time