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 / set camera to follow...not so great

Author
Message
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 25th Jun 2008 15:00
Okay,I read TDK's tutorial about 'set camera to follow'.I tried it but its not what i was expecting.I already had a code that did the same...but i want to make the camera to follow an object in the way that it will always look where the object 'looks'.Any way to do that?

books->movies->games
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 25th Jun 2008 18:09
Did you use the Object's Y Angle for the Angle value in the command? Try using OBJECT ANGLE Y(object number) as SET CAMERA TO FOLLOW's "angle" value. However, we will need to see some code to really help you...

best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 25th Jun 2008 19:19
Okay,I got another way to do that(from DB's example programs).Now i feel stupid.The object loads perfectly,bgm goes great,the matrix is easy to make and even add texture.When I try the game,I get really happy.I never knew I would be able to do this.And all thanks to your support.Thanks!
Well,Im not planning to finish with this result!I want to add something like a movable camera like in modern games.Lets see when Ill come back here...

books->movies->games
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 26th Jun 2008 15:33
Okay,so Im back.Now I know theres a way to change the camera angle,so it will show the front,left or right parts of the object.But however I couldnt find a command that makes the camera change its angle from back bottom to front bottom,know what I mean?I mean like look at the object from a little higher position but with an angle.Any command for that?thanks.

books->movies->games
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Jun 2008 16:28
Just set the height parameter.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 26th Jun 2008 16:32
Quote: "Just set the height parameter."


That, and you may also find the POINT CAMERA or XROTATE CAMERA commands useful.

best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 26th Jun 2008 18:04
I tried that xrotate camera command.Only it moves too fast. And I want it to move smooothly...

books->movies->games
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jun 2008 22:49
have a look at curvevalue and curveangle.

Dark Physics makes any hot drink go cold.
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 27th Jun 2008 10:33
I tried that curvevalue and curveangle,no difference:

if returnkey()=1
xrotate camera curveangle(25,cz#,10.0)
else
xrotate camera 0
endif
[code/]
Did the snippet work?
Anyway,why doesnt it work?Am I using it wrong or should I try another number(I tried 10,100,1000,but no difference).

books->movies->games
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jun 2008 11:34
will this help on how to use it.



Dark Physics makes any hot drink go cold.
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 27th Jun 2008 12:58
Call me el stupido,but sorry,dont get the xrotate parts.I didnt know you could put anything else there.

books->movies->games
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jun 2008 14:41
been writing a demo on how to use curveangle and what I thought above would work does not, not the way I was hoping, someone else like to step in and say how it should be done.

Dark Physics makes any hot drink go cold.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Jun 2008 16:28
Quote: "xrotate camera 0,x#,y#,z#"


Since when does xrotate camera take 4 parameters? Did you mean rotate camera???

best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 27th Jun 2008 17:25
Hmm,should I try that code with rotate camera?

books->movies->games

Login to post a reply

Server time is: 2024-09-27 16:31:58
Your offset time is: 2024-09-27 16:31:58