well, you're trying to do a 3d object to 2d. the only way to do that, is to use: "LOCK OBJECT ON 1" (1 being the object number)
then it does that.
But most people use Sprites for their HUD's.
heh generic test:
autocam off
sync on
sync rate 0
randomize timer()
`make a generic matrix texture
color backdrop rgb(0,150,0)
get image 1,0,0,639,439
`color backdrop rgb(0,0,0)
`make land to walk on
make matrix 1,1000,1000,20,20
randomize matrix 1,30
position matrix 1,0,0,0
PREPARE MATRIX TEXTURE 1,1,1,1
`make HUD plain
make object plain 1,100,100
color object 1,rgb(200,0,0)
position object 1,0,10,400
lock object on 1
position camera 300,50,300
do
set cursor 0,0
print screen fps()
print x#
print z#
x#=camera position x()
y#=camera position y()
z#=camera position z()
if mouseclick()=1 then move camera 3
if mouseclick()=2 then move camera -3
xrotate camera wrapvalue(camera angle x()+mousemovey() )
yrotate camera wrapvalue(camera angle y()+mousemovex() )
position camera x#,y#,z#
sync
loop
edit: ignore my matrix texturing code.. it's all messed up.. but the important thing is the lock object on command
Loki D'Cat - Modeller, Composer, Animator
Nerdsoft Creations
Machine Specs: Athlon XP1800+, ATi Radeon 8500 64mb, 1GB RAM, Windows 2000 AdvSvr