| 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: |
| Keep Camera Centered; how | |
|---|---|
| Tweet Topic Started: Sep 11 2007, 07:25 PM (224 Views) | |
| LaserLemon | Sep 11 2007, 07:25 PM Post #1 |
![]()
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.
|
![]() Formerly known as FaTaL_N00B. | |
![]() |
|
| Despellanion | Sep 11 2007, 08:58 PM Post #2 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You mean having the player centered in the view all the time? |
![]() |
|
| LaserLemon | Sep 12 2007, 06:46 PM Post #3 |
![]()
Sir
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Exactly! To keep the player in the middle of the screen even when walking or running etc. |
![]() Formerly known as FaTaL_N00B. | |
![]() |
|
| harkathmaker | Sep 13 2007, 04:48 AM Post #4 |
|
Persistent Enquirer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Just set the variable follow in the camera object to the player's object ID.
|
![]() |
|
| LaserLemon | Sep 13 2007, 08:58 PM Post #5 |
![]()
Sir
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Wait a minute, that's it? My follow variable was 1...
|
![]() Formerly known as FaTaL_N00B. | |
![]() |
|
| LuvGame | Sep 14 2007, 05:40 AM Post #6 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
well, this should be work. put this code at the create event of your player object:
|
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |






![]](http://z1.ifrm.com/static/1/pip_r.png)




2:35 AM Jul 11