hi
i need som help
i try to make a function.
the function has to make a object move up and down
here is my code
make object box 1,5,5,5
position object 1,0,0,0
global maxhigh#
global speed#
global speed2#
speed#=0.01
speed2#=0.01
maxhigh#=2
maxlow#=-2
position camera 0,0,-50
do
jaja(1,2,0.01,0.01)
sync
loop
function jaja(objnr_to_move_up_down#,maxhigh#,speed#,speed2#)
if object position y(objnr_to_move_up_down#)=>maxhigh#
speed#=-speed2#
endif
if object position y(objnr_to_move_up_down#)=<maxlow#
speed#=speed2#
endif
move object up objnr_to_move_up_down#,speed#
endfunction
But for some reason it doesn't work. Any help?
Night-Mist
be what you can't be.