Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/26/26 21:35
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (qin, TipmyPip), 5,848 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How do I make this kind of cam? #200675
04/05/08 09:41
04/05/08 09:41
Joined: Aug 2006
Posts: 49
J
Jourdan Offline OP
Newbie
Jourdan  Offline OP
Newbie
J

Joined: Aug 2006
Posts: 49
I want to make camera to see the right side of the player. But if I use
 Code:
camera.pan = player.pan + 90

(+90 = to make the camera in the right side of player)
Everytime the player turn around, the cam turn around too. How do I make the camera shot the right side of the player but player's movement doesn't affect the camera?

Thanks in advance

Re: How do I make this kind of cam? [Re: Jourdan] #200677
04/05/08 09:47
04/05/08 09:47
Joined: Aug 2006
Posts: 49
J
Jourdan Offline OP
Newbie
Jourdan  Offline OP
Newbie
J

Joined: Aug 2006
Posts: 49
nevermind, I use
 Code:
camera.pan = - 270;


\:\)

Re: How do I make this kind of cam? [Re: Jourdan] #200682
04/05/08 09:53
04/05/08 09:53
Joined: Jul 2007
Posts: 424
EUROPE
maslone1 Offline
Senior Member
maslone1  Offline
Senior Member

Joined: Jul 2007
Posts: 424
EUROPE
don't write your code in a while loop!
your code shurly looks like this:

 Code:
 

function my_camera()
{
   while(1) {
   camera.pan = player.pan + 90;
  }
}



------ but you have to write it outside a loop like this
 Code:
 

function my_camera()
{
   camera.pan = player.pan + 90;

  while(1) {
   .........
   ....
   ...
  }
}




IF you move your entity in all 3 dimensions the code for the camera will be longer. But there are some tutorials in the aum magazine.

I hope this all help you to write the right code ;\)

CU
Marcel


A8c, Blender, FlStudio, Unity3d
Re: How do I make this kind of cam? [Re: maslone1] #201325
04/08/08 12:05
04/08/08 12:05
Joined: Aug 2006
Posts: 49
J
Jourdan Offline OP
Newbie
Jourdan  Offline OP
Newbie
J

Joined: Aug 2006
Posts: 49
ok.. let meh test it.. thank you \:\)


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1