Initial resease!
- Add
panthera.clone_state
function to clone animation states. - Various fixes for correct animation playback.
- Add
speed
modifier for animation states to adjust all animations played by this state.- After creating an animation state, you can set the speed of all animations played by this state by setting the
speed
property. - Example:
animation_state.speed = 1.5
- After creating an animation state, you can set the speed of all animations played by this state by setting the
- Update documentation.
- Update GO and GUI adapters:
- GO now supports
color
andslice9
properties. - The default sprite color property is
tint
. To use panthera color property, use/panthera/materials/sprite.material
or any other withcolor
property. - GUI: fix slice9 property.
- GUI: fix for pie vertices and piebounds properties.
- GO now supports
- BREAKING CHANGES: Change
panthera.create_go
andpanthera.create_gui
functions signature.- Now
panthera.create_go(animation_path_or_data, [collection_name], [objects])
instead ofpanthera.create_go(animation_path, [get_node)
. - Now
panthera.create_gui(animation_path_or_data, [template_name], [nodes])
instead ofpanthera.create_gui(animation_path, [get_node])
. - Animation now can be created with a table with animation data directly. You can load JSON by yourself or load it from lua table.
- Instead of
get_node
parameter, you should pass template/collection name and nodes/objects table. Nodes are created fromgui.clone_tree
, objects are created fromcollectionfactory.create
. - To migrate to new version, you should modify your code to the new signature, or create animations with
panthera.create(animation_path_or_data, adapter, get_node)
function. Adapter can be obtained byrequire("panthera.adapters.adapter_[go|gui]")
.
- Now
- Add more examples with playing animations in different scenarios.
- Update documentation.
- The
animation_state
table now containsanimation_id
, instead ofanimation
table data. It will be better to log orpprint
the animation state. - Rename file
panthera_system
topanthera_internal
. - Add support for
is_editor_only
timeline key property - Add support for
easing_custom
timeline key property
- Add Defold Editor scripts to create and edit Panthera animations directly from the Defold Editor
- Panthera Editor should be started before using the scripts.
- Add time overflow handling for more precise animation playback.