say i have a few bars with a given length, how can i make sure that it always begins from y = 0? 0 = floor. so the bars stand on top of the floor, howto achive this, i tried with
but if a number is uneven it wil stand 0.5 below the floor. if a number is even it stands right.
see code what i mean:
a$="comment, 2, 25, 21, 19, 22, 30, 24"
b$=first token$(a$,",")
textb$ = b$ // comment
dim rija(30) // max 30
inca = 0
repeat
inc inca
b$=next token$(",")
rija(inca)=val(b$) // in array zetten
until b$=""
dec inca
x = 0
for z = 1 to inca
inc x
make object box z,1,rija(z),1
//gelijk = (rija(z)/2) //+0.5
//position object z,x,gelijk,1
position object z,x,0,1
next z
make object plane 20,20,2
rotate object 20,90,0,0
do
control camera using arrowkeys 0,0.1,0.1
loop