Rem Project: Sounds
Rem Created: 31/10/2004 00:54:19
Rem ***** Main Source File *****
sync on : sync rate 40 :
set text font "sauns serif" : set text size 16
set text to bold : set text transparent :autocam off
Load Image "floor.bmp",2
Position Camera 0,115,3,1
Make Matrix 1,200,200,32,32
prepare matrix texture 1,2,1,1
position matrix 1,0,0,0
load sound "Helicopter loop.wav",12
play sound 12
loop sound 12
load object "HELICO16.x",13
yrotate object 13,3600
position object 13,115,3,30
make object cube 11,100
position object 11,115,3,10
do
rem controls
if upkey()=1
move object 13,-0.50
endif
if leftkey()=1
YROTATE OBJECT 13,OBJECT ANGLE Y(13)-5.1
endif
if rightkey()=1
YROTATE OBJECT 13,OBJECT ANGLE Y(13)+5.1
endif
if downkey()=1
move object 13,+0.10
endif
if inkey$()="d"
move object down 13,0.10
endif
if inkey$()="u"
move object up 13,0.10
endif
rem Control camera over terrain
rem control camera using arrowkeys 0,1,1
rem take the rem away if need position
print " x:";camera position x(0);
print " y:";camera position y(0);
print " z:";camera position z(0)
print " key:";SCANCODE()
sync
loop
Here is my code.
I need to know how to make my helicopter tilt forward a litlle when i move forward.
And i need to know how to make it so that when im a sertan distance away from the ground dust flys around like a helicopter landing in a desert.
Thanks
SKater BoY
I also need to know how to make the camera folow the helicopter but not colse up just a little bit behind.
200GB HARD DRIVE 1GB RAM 256MB GRAPHICS CARD
