YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

GIF imports should also import their frame timings #6134

Open Gamer-XP opened 5 months ago

Gamer-XP commented 5 months ago

Is your feature request related to a problem?

I just found out you can actually change frame timings in the sprite editor (after all those years). And I have a questions. Why won't gif importer import frame timtings if GM does actually support them? It doesn't really makes much sense. I use gifs all the time, and being able to automatically import them with correct timings with be good.

Describe the solution you'd like

Make imported GIFs use correct timings. GIFs use ms timings, so, to convert them, I assume it should be like this: Make sprite's FPS to match minimal value needed to achieve correct timings, with the limit of 60FPS/1FramePerGameFrame. Then calculate rounded timings for each frame.

Describe alternatives you've considered

If not replacing existing gif importer - ask user each time when they import gif if they want to import timings. Can make an IDE setting for that too.

Additional context

No response

YYDan commented 5 months ago

Also requested/mentioned as part of https://github.com/YoYoGames/GameMaker-Bugs/issues/2854