I keep getting an unknown parameter for createRevoluteJoint. I can't figure it out. Not sure if it has to do with my array or not.
rem
rem AGK Application
rem
rem Landscape App
SetDisplayAspect( 4.0/3.0 )
background = CreateSprite ( LoadImage ( "background.jpg" ) )
SetSpritePosition ( background, 0, 0 )
setSpriteDepth(background,20)
setPhysicsGravity(0,0)
global dim spriteI[5]
global dim rope[10]
for i=1 to 5
loadImage(i , str(i)+".png")
spriteI[i] = createSprite (i)
setSpriteSize(spriteI[i],5,-1)
setSpritePhysicsOn(spriteI[i],2)
setSpriteDepth(spriteI[i],10)
setSpriteshape(spriteI[i],1)
next i
setSpritePosition(spriteI[1],40,50)
setSpritePosition(spriteI[2],45,50)
setSpritePosition(spriteI[3],50,50)
setSpritePosition(spriteI[4],55,50)
setSpritePosition(spriteI[5],60,50)
for i=6 to 10
loadImage(i , str(i)+".jpg")
rope[i] = createSprite (i)
setSpriteSize(rope[i],1,25)
setSpritePhysicsOn(rope[i],1)
setSpriteDepth(rope[i],11)
setSpriteshape(rope[i],2)
next i
setSpritePosition(rope[6],42,25)
setSpritePosition(rope[7],47,25)
setSpritePosition(rope[8],52,25)
setSpritePosition(rope[9],57,25)
setSpritePosition(rope[10],62,25)
createSprite (11, (loadImage ("Longbar.jpg")))
setSpriteSize(11,25,2)
setSpritePosition(11,40,25)
setSpritePhysicsOn(11,1)
setSpriteDepth(11,10)
CreateRevoluteJoint ( 11, 6, 42, 25)
do
Sync()
loop