mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Update Example: Positioning of Skeleton
Its better to set X and Y of the skeleton then setting X and Y of the root bone.
This commit is contained in:
parent
ab5b88f73f
commit
0e17a170b6
@ -78,8 +78,8 @@ namespace Spine {
|
|||||||
state.AddAnimation("jump", false);
|
state.AddAnimation("jump", false);
|
||||||
state.AddAnimation("walk", true);
|
state.AddAnimation("walk", true);
|
||||||
|
|
||||||
skeleton.RootBone.X = 320;
|
skeleton.X = 320;
|
||||||
skeleton.RootBone.Y = 440;
|
skeleton.Y = 440;
|
||||||
skeleton.UpdateWorldTransform();
|
skeleton.UpdateWorldTransform();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user