Hello ppl
i don't know if u remember my previous posts
Im trying to make a simulator of a spinning ride, and slowly slowly its progressing, very simplisticaly, iv made the platform move away from the spinner, and the spinner to go up and down, and basicly to spin
but its very...blunt, when i press "1" it spins, then when i let go it stops, how can i make it so it slowly builds up speed to a spesific speed, and dosn't stop when i let go of the key, only when i press 0 or something will it go back to stoped mode, again, slowing down gradualy..
here is the code, and a picture
sync
SET DISPLAY MODE 1152, 864, 32
SET WINDOW SIZE 1152, 864
SET WINDOW OFF
make camera 1
POSITION CAMERA 1, 0, 200, -1000
make light 1
make light 2
load object "main.x", 1
load object "platform.x", 2
load object "spinner.x", 3
load image "metal.bmp", 4
load object "sky.x", 5
load image "cloud2.bmp", 6
SCALE OBJECT 5, 150, 150, 150
FOG ON
POSITION LIGHT 1, -290, 165, -480
COLOR LIGHT 1, 255, 10, 10
POSITION LIGHT 2, 280, 165, -480
COLOR LIGHT 2, 10, 250, 10
sync
do
oz#=object position z(2)
oy1#=object position y(3)
position object 2,ox#,oy#,oz#
position object 3,ox1#,oy1#,oz1#
if inkey$()="z" and oz#<0 then: MOVE OBJECT 2, 1
if inkey$()="x" and oz#>-110 then: MOVE OBJECT 2, -1
if inkey$()="q" and oy1#>0 then position object 3,ox1#,oy1#-1,oz1#
if inkey$()="e" and oy1#<110 then position object 3,ox1#,oy1#+1,oz1#
yspin=OBJECT ANGLE Y(3)
if inkey$()="1" then YROTATE OBJECT 3, yspin+1
if inkey$()="2" then YROTATE OBJECT 3, yspin+2
if upkey()=1 or inkey$()="w" then: move camera 1, 1.5
if downkey()=1 or inkey$()="s" then: move camera 1, -1.5
if leftkey()=1 or inkey$()="a" then: TURN CAMERA LEFT 1, 1
if rightkey()=1 or inkey$()="d" then: turn camera right 1, 1
loop