Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Keep Camera Centered; how
Topic Started: Sep 11 2007, 07:25 PM (224 Views)
LaserLemon
Member Avatar
Sir
[ *  *  *  *  *  * ]
Okay, this might turn out to be quite a nooby question and there'll propable some logical explanation or example somewhere but I'm too lazy to look for it now, how can I center the camera on my player in an rpg-ish kind of way whilst moving. The one in the collision example isn't working... I'm looking for a World of Warcraft-type effect. :)
Posted Image

Formerly known as FaTaL_N00B.
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
You mean having the player centered in the view all the time?
Offline Profile Quote Post Goto Top
 
LaserLemon
Member Avatar
Sir
[ *  *  *  *  *  * ]
Quote:
 
You mean having the player centered in the view all the time?


Exactly! :lol:

To keep the player in the middle of the screen even when walking or running etc.
Posted Image

Formerly known as FaTaL_N00B.
Offline Profile Quote Post Goto Top
 
harkathmaker
Member Avatar
Persistent Enquirer
[ *  *  *  *  * ]
Just set the variable follow in the camera object to the player's object ID. :P
Offline Profile Quote Post Goto Top
 
LaserLemon
Member Avatar
Sir
[ *  *  *  *  *  * ]
Wait a minute, that's it? My follow variable was 1... :wacko:
Posted Image

Formerly known as FaTaL_N00B.
Offline Profile Quote Post Goto Top
 
LuvGame
Advanced Member
[ *  *  * ]
FaTaL_N00B
Sep 13 2007, 06:58 PM
Wait a minute, that's it? My follow variable was 1... :wacko:

well, this should be work. put this code at the create event of your player object:
Code:
 
camera.follow=id;
camera.perspective=2;
camera.distance=30;
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply