# LoadSkeleton2DFromSpriterFile

## Description

Loads a Spriter animation exported in the JSON format. Please see the guide section for details on what is supported. Returns an ID to use to reference this skeleton. The atlas image parameter is not yet supported and must be 0, the images will be loaded from the paths specified in the Spriter JSON file. You can use the scale value to change the size of the sprites and bones to match your chosen resolution. A value of 1 will not change the sizes, a value of 2 will make everything twice as big, a value of 0.5 will half the size, and so on.

## Definition

integer LoadSkeleton2DFromSpriterFile( filename, scale, atlasImage )

UINT agk::LoadSkeleton2DFromSpriterFile( const char* filename, float scale, UINT atlasImage )

LoadSkeleton2DFromSpriterFile( iSkeleton, filename, scale, atlasImage )

void agk::LoadSkeleton2DFromSpriterFile( UINT iSkeleton, const char* filename, float scale, UINT atlasImage )

## Parameters

- filename - Name of the file to load, should be the .json export from Spine
- scale - The amount to scale the object sizes
- atlasImage - reserved, must be 0
- iSkeleton - ID to use for this skeleton