Well, im trying, as suggested, to stop using subroutines and start to use functions.
This is the code for updating the cam each sync:
function update_cam()
rem place camera
position camera object position x(1), object position y(1)+camdistance, object position z(1)-camdistance
point camera object position x(1), object position y(1), object position z(1)
endfunction
Problem is, it simply doesnt work
I only see gray color over the whole screen. The funny part is that if I place the camera code outside of the function, plain and clutterly right in the main loop, it works!
I call the funtion with update_cam(). Full source included if you need more info.
Thanks in advance
Mizipzor
Dreaming of creating a highly advanced AI mind