here is my source code for my array Note: it's not perfect but its a start for me i'm still learning
try my source code to see the issue I'm having :_
Quote: "
REM Project: ShaysFirstArrays2
REM Created: 7/30/2008 6:42:57 AM
REM Author: Shaylan Mackay 2008
REM ***** Main Source File *****
REM
sync on : sync rate 60
color backdrop 0 : hide mouse
set display mode 640,480,32
set camera range .80,0
`pitch camera down 32
` Setup array
dim boxes(6)
dim boxes(1) = box1
dim boxes(2) = box2
dim boxes(3) = box3
dim boxes(4) = box4
dim boxes(5) = box5
dim boxes(6) = box6
` model position variables
x# = posx = rnd(.255)
y# = posy = rnd(.255)
z# = posz = rnd(.255)
`z2# is the only position variable
`Z2# that is only for back center
z2# = posz = rnd(.4)
`Load all media here
box1=1
load object "box.x",box1
position object box1,-x#,0,0
set object smoothing 1,100
`scale object box1,1,1,1
box2=2
load object "box.x",box2
position object box2,x#,0,0
set object smoothing 2,100
`scale object box2,2,2,2
box3=3
load object "box.x",box3
position object box3,-x#,0,z#
set object smoothing 3,100
`scale object box3,2,2,2
box4=4
load object "box.x",box4
position object box4,x#,0,z#
set object smoothing 4,100
`scale object box4,2,2,2
box5=5
load object "box.x",box5
position object box5,-x,0,z
set object smoothing 5,100
`scale object box5,2,2,2
box6=6 ` this one is center back
load object "box.x",box6
position object box6,0,0,z2#
set object smoothing 6,100
`scale object box5,2,2,2
` All textures go here
load image "1.bmp",1
load image "2.bmp",2
load image "3.bmp",3
load image "4.bmp",4
` Apply textures to object
texture object 1,1
texture object 2,2
texture object 3,3
texture object 4,4
` Adjust texture appearance
` **** Main Loop ****
do
if keystate(203) then turn camera left .5 ` Left arrow key
if keystate(205) then turn camera left -.5 ` Right arrow key
if keystate(200) then move camera .005 ` Up arrow key
if keystate(208) then move camera -.005 ` Down arrow key
sync
loop
end
"
the problem for me is my models load up fine
in one angle they look straight and perfect but on the left and right they're slightly off from being straight and flat instead
they're look like they're rolling turn or a pitch turn
all they are simple square cubes nothing fancy
please help resolve this slightly small issue
plus rotate object doesn't seem to work for me
but I'm thinking that its my model position
variables but I'm not so sure please help me
P.S the z2# = posz = rnd(.4) variable is only for
the back center row of cubes.
cubes in the middle only
I'll wait for your replies
Shay3000