Hi Xystus!
I have a code snippet that defintely will be useful for you:
sync rate 30
sync on
set point light 0,10,10,-10
make object cone 1,10
color object 1,rgb(255,255,255)
set object cull 1,0
zrotate object 1,270
xrotate object 1,-90
fix object pivot 1
make object plain 2,5,5
make object plain 3,25,25
xrotate object 3,270
set object wireframe 3,1
make object plain 4,0.01,25
xrotate object 4,270
set object wireframe 4,1
make object plain 5,25,0.01
xrotate object 5,270
set object wireframe 5,1
x as integer
y as integer
z as integer
cx as integer
cy as integer
cz as integer
do
position camera 0,30,-30
point camera 0,0,0
if inkey$()="8" then z=z+1
if inkey$()="2" then z=z-1
if inkey$()="4" then x=x-1
if inkey$()="6" then x=x+1
if inkey$()="7" then y=y+1
if inkey$()="1" then y=y-1
if inkey$()="w" then cz=cz+1
if inkey$()="s" then cz=cz-1
if inkey$()="a" then cx=cx-1
if inkey$()="d" then cx=cx+1
if inkey$()="q" then cy=cy+1
if inkey$()="e" then cy=cy-1
position object 2,x,y,z
position object 1,cx,cy,cz
yrotate object 1,atanfull(x-cx,z-cz)+180
xrotate object 1,atanfull(sqrt((x-cx)^2+(z-cz)^2),-(y-cy))-90
yrotate object 2,atanfull(cx-x,cz-z)+180
xrotate object 2,atanfull(sqrt((cx-x)^2+(cz-z)^2),-(cy-y))-90
text 0,0 ,str$(x)+"x "+str$(y)+"y "+str$(z)+"z"
text 0,10,str$(cx)+"cx "+str$(cy)+"cy "+str$(cz)+"cz"
text 0,20,"controls are [8] [6] [2] [4] as wasd and [7] [1] as up/down for ball target"
text 0,40,"controls are [wasd] and [q] [e] as up/down for camera"
sync
LOOP
This code was made for this thread: http://forum.thegamecreators.com/?m=forum_view&t=196176&b=1&p=0
I think you will get the idea how to use it with your trails.
«It's the Pony, pony me this, pony me that» — Bronies
«I sell apples and apple accessories» — Applejack
Derpy delivers: watch?v=g4Kgz4Us_RI