Gamestudio Links
Zorro Links
Newest Posts
No errors in the command line
by JMMAC. 05/05/26 16:25
Purchase A8 full licence version
by jcl. 05/05/26 11:20
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (JMMAC, Grant, TipmyPip), 6,668 guests, and 30 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dangyc, ukgamer, valino, juergenwue, VladMak
19211 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