Hi
Is there a skeleton example somewhere ?
Is there a way to parent a sprite with a bone ?
Can we create a new bone and how ?
it seems the skeleton lib isn't finished ^^.
SetWindowTitle( "skeleton" )
SetVirtualResolution( 1024, 768 )
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
CreateSkeleton2D( 1 )
SetSkeleton2DVisible( 1, 1 )
Createsprite(1,0)
SetSpriteSize(1,20,40)
a=0
SetSkeleton2DBonePosition(1,1,100,100)
do
inc a
SetSkeleton2DBonePosition(1,1,GetSkeleton2DBoneX(1,1)+sin(a),GetSkeleton2DBoneY(1,1))
SetSpritePosition(1,GetSkeleton2DBoneX(1,1),GetSkeleton2DBoneY(1,1))
Print("skeloton : "+str(GetSkeleton2DBoneX(1,1))+"/"+str(GetSkeleton2DBoneY(1,1)) )
Print( ScreenFPS() )
Sync()
loop
AGK2 tier1 - http://www.dracaena-studio.com