how do you do skeletons spine with collision and physics?
Any help appreciated!
edit: there might be a bug
I try the following code, but the physic shape is no longer attach to the sprite?
createsprite(2, 0)
setspritesize(2, 100, 100)
SetSpritePosition(2, 500, 300)
setspriteshape(2, 3)
SetSpritePhysicsOn(2, 2)
SetSpriteDepth(2, 99)
SetPhysicsDebugOn()
// load atlas image
LoadImage( 15, "test.png" )
// load JSON exported Spine file
LoadSkeleton2DFromSpineFile( 1, "spineboy.json", 1, 15, 1 )
// position it near the bottom of the screen
SetSkeleton2DPosition( 1, 512, 768 )
SetSkeleton2DDepth(1, 100)
createsprite(1, 0)
SetSpriteSize(1, 25, 25)
SetSpritePhysicsOn(1, 2)
setspriteshapecircle(1, 0, 0, 50)
FixSpriteToSkeleton2D(1, 1, 11, 50)
// play the walk animation
PlaySkeleton2DAnimation( 1, "walk", 0, 1, 0.3 )