rendering.draw_animation's animation_offset

Place to report issues and suggest improvements to the API documentation.
Quezler
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

rendering.draw_animation's animation_offset

Post by Quezler »

https://discord.com/channels/1214952937 ... 3576293469

the animation's starting frame is determined based on the current tick, this does not make sense if you leave the animation_offset empty or at 0, it should be documented after "Offset of the animation in frames. Default is 0." that its tick based and needs something like `-(tick * speed) % frames`, or ideally (and most logically, to me that is) luarendering should always start on the first sprite (ofc animation_offset can be used to shift it) and completely disregard whatever the current tick is.
Post Reply

Return to “Documentation Improvement Requests”