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 / camera question for dbpro

Author
Message
Soy Cocktail
20
Years of Service
User Offline
Joined: 23rd Dec 2003
Location:
Posted: 11th Jun 2004 08:47
im trying to make a camera follow an object, which i got to work. I also want it to be able to rotate around the object while the object moves. I would like to have it rotate the camera when mousex()>1000 and also when mousex()<11. i have searched for more information in codebase and here and found some things that i couldnt get to work the most useful is probably what wabler said in this thread http://www.thegamecreators.com/?m=forum_view&t=23900&b=7 but i couldnt understand it

the code i have is here
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 11th Jun 2004 09:51
well, i would say that the variable, ang#, need to become a global, but i could be wrong.......make that function a goto and try it.....if that dosn't work, i included a small code that may be what your looking for...

cheers,
Bish

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
Soy Cocktail
20
Years of Service
User Offline
Joined: 23rd Dec 2003
Location:
Posted: 11th Jun 2004 11:54
Thanks it solved my problem it kept resetting the angle to 1 so it would never move more than that, it works just how i wanted it to, and I didnt have to do any trig like I thought I would have had to.

Login to post a reply

Server time is: 2024-11-26 20:18:18
Your offset time is: 2024-11-26 20:18:18