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.

Author
Message
zao420
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 4th Oct 2003 22:09
OK i am trying to get my movement and camera controls set the way i want them and been having problems.. I am not sure if this is the best way to do it.

I added comeents to the code to show what not working..



thanks for any help with this..
skovron
22
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 4th Oct 2003 22:33
There is a problem with local/global scope. One rule - if you wannna change your variable that is outside function from inside the function, you must declare it as global

for example:


Only variables declared as "global" are visible from inside your functions. On the other side arrays are always visible.
I hope it helped a little
zao420
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 4th Oct 2003 22:38
thanks man help alot.
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 5th Oct 2003 17:43 Edited at: 5th Oct 2003 17:44
Check out the Camera Control Function I posted to Code Snippits

[href]
http://darkbasicpro.thegamecreators.com/?m=forum_view&t=16657&b=6
[/href]

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX

Login to post a reply

Server time is: 2026-07-25 07:01:39
Your offset time is: 2026-07-25 07:01:39