2 options:
1. Loop through all of the sprites and move them all the same distance in turn.
2. Make one of the sprites a static physics sprite and the rest dynamic physics sprites. Connect them all with weld joints. Moving the Kinetic sprite will then move them all.
Here's an example of option 2:
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
box1 = createSprite(0)
setSpriteSize(box1,100,10)
setSpriteColor(box1,255,0,0,255)
setSpritePosition(box1, 100,100)
box2 = createSprite(0)
setSpriteSize(box2,200,20)
setSpriteColor(box2,0,255,0,255)
setSpritePosition(box2, 400,200)
SetSpritePhysicsOn(box1,3)
SetSpritePhysicsOn(box2,2)
joint = CreateWeldJoint(box1,box2,100,100,0)
time# = timer()
while timer() < time# + 2
sync()
endwhile
do
setSpritePosition(Box1,getSpriteX(Box1), getSpriteY(Box1) + 1)
Print( ScreenFPS() )
Sync()
loop
Quidquid latine dictum sit, altum sonatur