You could use a method like this...
set display mode 800,600,32:set window on
set window layout 1,1,0:set window title "Move window test"
ink rgb(255,0,255),0
box 0,0,100,100
ink rgb(0,255,0),0
box 20,20,80,80
get image 1,0,0,100,100,1
color backdrop rgb(155,50,0)
Set Camera Range 0, .01, 3000.0
autocam off
sync on
make object box 1,5,5,5 : texture object 1,1
`Make the screen quad
Make Object Plain 2, 0.0321, 0.0245 : Position Object 2, 0, 0, .02 : Set Object Cull 2, 0
Point Object 2, 0, 0, 0 : Lock Object On 2
Set Object Transparency 2, 1
position camera -10,10,-10 : point camera 0,0,0
do
If Image Exist( 2 ) Then Delete Image 2
IK Create Image 2, Screen Width(), Screen Height(), 0 : ` Sven B's Image kit
IK Paste Image On Image 1, 2, 240, 230 : ` Sven B's Image kit
IK Paste Image On Image 1, 2, 150, 10 : ` Sven B's Image kit
IK Paste Image On Image 1, 2, 20, 300 : ` Sven B's Image kit
Texture Object 2, 2
yrotate object 1, WrapValue( Timer() * 0.05 )
Text 50, 50, "MOVE WINDOWS"
sync
loop
It works with the images, so your HUD will be ok. You just need to convert your text to images so you can paste that onto the screen image too. (In my game engine, I use an AppGameKit style text to image routine. You could create something similar for this)
This uses the (Absolutely invaluable) Image Kit by Sven B. I suggest you download it!
My signature is NOT a moderator plaything! Stop changing it!
