this is my code :
// Add Virtual Joystick Buttons
AddVirtualJoystick( 1, 10, 88, 12)
// Create Sprite
spr = CreateSprite ( 0 )
SetSpriteSize ( spr, 4, 8 )
SetSpriteOffset ( spr, 2, 4 )
SetSpritePositionByOffset ( spr, 50, 96 )
SetSpriteColor ( spr, 255, 0, 0, 255 )
SetSpritePhysicsOn ( spr, 2 )
SetSpritePhysicsCanRotate( spr, 0 )
SetSpriteDepth ( spr, 0 )
boxman = spr
// Sprite Box
spr3 = CreateSprite ( 0 )
SetSpriteSize ( spr3, 4, 8 )
SetSpriteOffset ( spr3, 2, 4 )
SetSpritePositionByOffset ( spr3, 30, 96 )
SetSpritePhysicsOn ( spr3, 2 )
do
setSpritePhysicsVelocity(boxman,GetVirtualJoystickX(1)*30.0,getSpritePhysicsVelocityY(boxman))
sync()
Loop