Can anyone tell me why this code doesn't work:
sync on
set image colorkey 255,0,255
Load Object "Data\Models\HUD.x",997
Load Image "Data\Menu\HUDT.bmp",997,1
Texture Object 997,997
ZRotate Object 997,90
Fix Object Pivot 997
Set Object Transparency 997,1
Set Object Cull 977,0
Set Object Light 997,0
Set Object Fog 997,0
Disable Object ZDepth 997
Position Camera 400,0,0
Point Camera 0,0,0
and this code does?
sync on
set image colorkey 255,0,255
Load Object "Data\Models\HUD.x",997
Load Image "Data\Menu\HUDT.bmp",997,1
Texture Object 997,997
ZRotate Object 997,90
Fix Object Pivot 997
Set Object 997,1,1,0,0,0,0,0
Disable Object ZDepth 997
Position Camera 400,0,0
Point Camera 0,0,0
Instead of setting each property individually, I set them all with one command. Why does that work while the first example doesn't? Am I missing something here, or is this a bug?
As well, when I use the second piece of code and add the line: lock object on 997 to the end, the hud model disappears. It is visible up until I put in the lock object on code, then it's gone.
Using the camera positioning code (last two lines) the hud appears perfectly centered. But when I use lock object on, the hud disappears...
Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors