Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.23k stars 531 forks source link

Find a way to implement animation speed #1262

Open bjorn-ali-goransson opened 4 years ago

bjorn-ali-goransson commented 4 years ago

Describe the feature you'd like We currently don't have any way of adjusting, adapting or modifying the animation speed.

Describe why do you think it is needed This is needed partly for implementing propulsion animation ( https://github.com/Warzone2100/warzone2100/issues/864 with PR https://github.com/Warzone2100/warzone2100/pull/875 ) as well as doing a nice way of animating cyborg legs for the drive mode ( https://github.com/Warzone2100/warzone2100/issues/816 with PR https://github.com/Warzone2100/warzone2100/pull/829 )

MaNGusT- commented 4 years ago

we can change speed in _ANIMOBJECT 66 0 11_ by changing first value

as I said in pr 875, there is no need to change code, you could animate propulsion using event-driven animation AND texture animation. The problem is that we don't have user-friendly tools to make texture animation. Probably, it should be reworked to something different. i.e. in warcraft 3 Blizzard used texture animation in a way that each frame was kept in different file. So this way we will just need to render a video in 3d editor(or video editor) in image format.