Trying to use SetSpriteShapeChain() and it is giving me this error when i try to add the 12th point
This is the code, not sure how use full it will be though.
//
// For each shape in the table
for i=0 to shapes.length
v = shapes[i].outline
//
// Create a sprite and position it to the first point in the table
s = CreateSprite(0)
SetSpritePositionByOffset(s, v[0].x, v[0].y)
//
// Make the first point in the shape chain at 0, 0
SetSpriteShapeChain(s, v.length + 1, 0, 1, 0.0, 0.0, 0)
//
// create shape chain points for all the other points in the table
// Note that the position is adjusted so it is relative to the first point
for x=1 to v.length
SetSpriteShapeChain(s, v.length + 1, x, 1, v[x].x - v[0].x, v[x].y - v[0].y, x + 1)
next
next