SkeletonNode=SkeletonAnimation: : createWithFile (" skeleton. Json ", "skeleton. Atlas");
AddChild (skeletonNode);
SkeletonNode - & gt; SetPosition (Vec2 (750/2 1334/2));
SkeletonNode - & gt; SetAnimation (0, "animation", true);
O great god teach
CodePudding user response:
The delete skeletonNode;