when i was noobier than what i am now,
lol, and wanted to have a camera or object only go between certain values, when i test it it would shake
and here is my solution to this:
If button=1 AND position(?)>min value
Then decrease position
Endif
If button=1 AND position(?)<max value
Then increase position
Endif
an example? if u wanted to raise an object from 5 to 60
then this is your code
`object number to lower/raise: 201
`lower by 0.5
if keystate(44)=1 AND object position y(201)>5
position object 201,0,object position y(201)-0.5,0
TOKab_SetPosition AB2,0,object position y(201),0
endif
`raise by 0.5
if keystate(30)=1 AND object position y(201)<60
position object 201,0,object position y(201)+0.5,0
TOKab_SetPosition AB2,0,object position y(201),0
endif
PS
the TOKab.. stuff is physics, if u are ever looking to go major 3d and dont want to buy those plugins, TOKAMAK is pretty good and free
[edit]
at the bottom is help files for dbpro to install with the tokamak
[/edit]