You can do something like this:
the first lines in your sync loop:
fps#=1/GetFrameTime()
tween#=60/fps#
Then anytime you like to move something you just do like this:
cammove#=-GetVirtualJoystickY( 1 ) * tween#
or moving a object:
SetObjectPosition(door1[a],GetObjectX(door[a]),GetObjectY(door[a])-(1.0*tween#),GetObjectZ(door1[a]))
here 1.0 is the speed you like it to move at ( when you make the * tween# it will add to this is the fps is low , so you move at the same speed no matter the FPS ).
SetObjectRotation(gunobj, GetObjectAngleX(gunobj), GetObjectAngleY(gunobj)+(0.1*tween#), GetObjectAngleZ(gunobj) )
Here i like to move 0.1 each cycle so use 0.1*tween#
best regards Preben Eriksen,