[Also, I am making a game and am trying to posistion an object with the back edge of it at the back edge of a game board. When I do the 'z' position as 5.0, half of it is off of the side. But when I do it as 4.5, it is way down near the middle of the board.
rem The game board
make object box 2,15,0.01,10
position object 2,0,-0.005,0
color object 2,rgb(0,0,150)
rem Function for pieces
function writeBrick(brick_width, brick_height)
brick_count# = 3
do
if object exist (brick_count#) then: brick_count# = brick_count# + 1 else: exit
loop
make object box brick_count#,1,0.5,0.5
position object brick_count#,brick_width,0.25,brick_height
color object brick_count#,rgb(rnd(255),rnd(255),rnd(255))
endfunction
Any help would be appreciated.
www.war3forums.net