You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ "date": "2026-02-16", "summary": "Enhanced pathfinding documentation with grid offset properties, path smoothing, obstacle cost clarification, and activation behavior" },
7
7
{ "date": "2026-02-16", "summary": "Improved UI and visual object documentation: enhanced light, button, slider, text, panel sprite, and particle emitter pages with detailed properties and usage tips" },
8
-
{ "date": "2026-02-16", "summary": "Enhanced tween behavior documentation with scale center options, color modes, exponential interpolation, and effect properties" }
8
+
{ "date": "2026-02-16", "summary": "Enhanced tween behavior documentation with scale center options, color modes, exponential interpolation, and effect properties" },
9
+
{ "date": "2026-02-16", "summary": "Enhanced Spine object documentation with animation control details, point attachments, skins, mixing duration, and coordinate systems" }
Copy file name to clipboardExpand all lines: docs/gdevelop5/objects/spine/index.md
+46-4Lines changed: 46 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,10 @@ It supports smooth transitions between animations, as well as access to points a
17
17
You can:
18
18
19
19
- Load and display Spine animations exported from the Spine editor.
20
-
- Control animation playback and blending.
21
-
- Retrieve the position of specific **point attachments** defined in your Spine skeleton.
20
+
- Control animation playback, pausing, and speed.
21
+
- Configure smooth blending between animations with adjustable mixing duration.
22
+
- Retrieve the position, rotation, and scale of specific **point attachments** defined in your Spine skeleton (both in local and world coordinates).
23
+
- Apply different **skins** to change the character's appearance at runtime.
22
24
- Use multiple animations with smooth transitions between them.
23
25
24
26
It uses files exported from Spine (`.json`, `.atlas`, and image files) to render and animate characters or elements with smooth, interpolated bone-based movement.
@@ -38,8 +40,48 @@ In the object editor, you can configure:
|**Spine JSON file**| The main file describing bones, animations, and attachments. |
41
-
|**Scale**| The overall display scale of the skeleton. Default value is **1**. |
42
-
|**Animations list**| List of available animations. Click **Scan** to automatically generate the list from the Spine JSON file. |
43
+
|**Scale**| The overall display scale of the skeleton. Default value is **1**. This scale is applied to the base size of the skeleton. |
44
+
|**Skin name**| The default skin to apply when the object is created. Leave empty to use the "default" skin defined in Spine. |
45
+
|**Animations list**| List of available animations. Click **Scan** to automatically generate the list from the Spine JSON file. Each animation can be set to loop or play once. |
46
+
47
+
## Key features
48
+
49
+
### Animation control
50
+
51
+
The Spine object provides full control over animation playback:
52
+
53
+
-**Play animations by name or index**: Switch between different animations defined in your Spine skeleton.
54
+
-**Animation speed scale**: Speed up or slow down animations by adjusting the speed scale (e.g., 0.5 for half speed, 2.0 for double speed).
55
+
-**Pause and resume**: Pause the animation at any frame and resume playback later.
56
+
-**Check animation completion**: Detect when a non-looping animation has finished playing.
57
+
-**Animation mixing duration**: Set the duration (in seconds) for smooth transitions between animations. A value of 0 means instant switching, while higher values create smooth blending.
58
+
59
+
### Point attachments
60
+
61
+
Point attachments are invisible reference points defined in your Spine skeleton. You can use them to:
62
+
63
+
- Position objects at specific bones (e.g., place a weapon in a character's hand).
64
+
- Track the position of any part of the skeleton during animation.
65
+
- Get both **local coordinates** (relative to the skeleton) and **world coordinates** (absolute position on the scene).
66
+
- Retrieve position, rotation, and scale information for each point attachment.
67
+
68
+
When accessing point attachments, you specify the **attachment name** and optionally the **slot name**. If the attachment and slot have the same name, you can leave the slot name empty.
69
+
70
+
### Skins
71
+
72
+
Skins allow you to change the appearance of your Spine character without changing the skeleton structure or animations:
73
+
74
+
- Switch between different character outfits or appearances at runtime.
75
+
- Each skin can have different images attached to the same bones.
76
+
- The default skin is named "default" unless you specify otherwise in Spine.
77
+
78
+
### Flipping and scaling
79
+
80
+
The Spine object supports standard transformations:
81
+
82
+
-**Flip horizontally or vertically**: Mirror the skeleton on the X or Y axis.
83
+
-**Independent scale on X and Y**: Stretch or compress the skeleton in either direction.
84
+
-**Resize**: Change the width and height of the skeleton, which adjusts the scale accordingly.
0 commit comments