Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Function help

Author
Message
Slayer
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: CA
Posted: 20th Feb 2004 05:08
I made this function to controll my camera
and it wont work.

if upkey()
cam(cx,cz,360.0,0.4)
endif

position camera cx,8.0,cz

function cam(x,z,angle,speed)
x=newxvalue(x,angle,speed)
z=newzvalue(z,angle,speed)
endfunction cam(x,z,angle,speed)

I dont know how to spell
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 20th Feb 2004 05:38
it appears your calling the function again at the end of your function as a return statement.


indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 20th Feb 2004 05:41
here is a quick example of a function




Login to post a reply

Server time is: 2024-11-26 05:38:49
Your offset time is: 2024-11-26 05:38:49