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.

DarkBASIC Professional Discussion / camera follow command?

Author
Message
Mugen Wizardry
User Banned
Posted: 30th Aug 2010 00:26
Hi all. How would I recreate Set Camera To Follow? EXCEPT. this time, i need to be able to multiply the speed the camera follows u and finds u with TBM_Move(.09) so it works with my timer based code.

thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 30th Aug 2010 01:35
You can do it with a little bit of trig. Sin/cos are your friends!
Have this to start you off...

See, trig is essential learning! lol

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 30th Aug 2010 01:37
Thanks, Mobiius! ^^

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 30th Aug 2010 01:57
um. not zooming into the player.

here's what i have so far:



thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Kira Vakaan
17
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 30th Aug 2010 07:32
Why don't you substitute the rotate camera command with point camera PlayerX, PlayerY, PlayerZ?

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 30th Aug 2010 14:17
What do you mean, not zooming into the player? You do see the distance 'variable' yeah? You are changing the 'distance' variable yeah?

Instead of your rather unhelpful comments like: "um. not zooming into the player." Why not throw us all a one and explain what you mean, rather than expecting us to work it out from your cryptic comments>

My signature is NOT a moderator plaything! Stop changing it!
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 30th Aug 2010 14:26
Mugen, I really think you should start trying to do some of this stuff without jumping on the forums. The board is inundated with your posts just recently, and most are simply asking how do I use this command? Read The beeping manual!

http://s6.bitefight.org/c.php?uid=103081
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Sep 2010 14:51
Deja vous...

Maybe you don't realise you are being rude Mugen? People spend time trying to help on these forums out of a)Wanting to help and pass on their knowledge and b)an interest in learning more about the language from other people's solutions.

You rarely thank people for their help (except when it actually solves your problem 100% perfectly) and often put cryptic pointers in for the problems you are having.

Here is some practical advice on how to solve the problems in your code:
1-Try to work out exactly what is going wrong
2-Look through the Help files/manual for commands that might help solve the issue
3-Post a question on the forum (if possible with a simplified version of the exact problem, if not then with a snippet that contains the code you think is going wrong, or as a last resort with a fairly accurate description of what is going wrong)

Your first post here is a typical "How not to post":
Quote: "Hi all. How would I recreate Set Camera To Follow? EXCEPT. this time, i need to be able to multiply the speed the camera follows u and finds u with TBM_Move(.09) so it works with my timer based code.

thanks!"

How about posting your current camera code/TBM code? You might has well just write "Gimme sum codez!"

Sorry to keep bugging you like this but you are being told so many times the same thing.

Login to post a reply

Server time is: 2026-07-23 12:10:36
Your offset time is: 2026-07-23 12:10:36