Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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