Releases: defold/extension-spine
Releases · defold/extension-spine
Physics rotate function
Support editing GUIs with spine nodes using editor scripts
Relies on Defold 1.10.3. Example:
editor.transact({
editor.tx.add("/main.gui", "nodes", {
type = "gui-node-type-spine",
spine_scene = "bg"
})
})
Mixing and clearing spine skins at runtime and physics translate
- Added the ability to add and copy skins to each other, as well as clear them:
spine.clear_skin(self.spine_model_id, "base_empty")
spine.add_skin(self.spine_model_id, "base_empty", "blue_head")
spine.add_skin(self.spine_model_id, "base_empty", "original_body")
spine.set_skin(self.spine_model_id, "base_empty")
- Added new function
spine.physics_translate()
which applies a physics-based translation to the Spine model:
spine.physics_translate(self.model, self.translate)
Update for Defold 1.10.3+
This release relies on Defold editor version 1.10.3
This version allows editing Spine scenes of GUI nodes using editor scripts, e.g.:
editor.transact({
editor.tx.add("/main.gui", "spine_scenes", {
spine_scene = "/bg.spinescene"
}),
})
Fixed Spine model selection in the Editor
- Fixed issue where Spine model components could not be selected by clicking in the Editor
Make missing atlas images a build error in the editor
This release aligns the Editor's behavior with Bob's: both now treat missing images in an atlas used by a spinescene as errors.
Fix issues when masks are used
- Fixed issues where, in some cases, using animations with a mask could crash the engine
Updated for Defold 1.10.1+
The function ConstructInstanceId(index)
has been replaced with the CreateInstanceId()
function.
Updated for Defold 1.9.9+
Updated the DM_PROPERTY_* profiling api