Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 08/26/26 22:38
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (VoroneTZ, TipmyPip, OptimusPrime, Quad), 6,732 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Camera.genius #250881
02/10/09 13:44
02/10/09 13:44
Joined: Sep 2005
Posts: 75
CA, Orange County
Gerrit Offline OP
Junior Member
Gerrit  Offline OP
Junior Member

Joined: Sep 2005
Posts: 75
CA, Orange County
Hi everyone,
I am designing a game where the player is a dog (I have ENTITY* dog_player; defined at the beginning of the program)
The statements below work fine except that I continue to see the dog! I single stepped through the code and the dog does dissapear when executing the first line "camera.genius=dog_player;" but the dog re-appears when the program executes "camera.y -= (15 * sin(dog_player.pan);". I assumed that this line somehow affected the camera so I added a last line "camera.genius=dog_player;" (just to test) but to no avail the dog remains visible....

Any suggestions?

camera.genius=dog_player;
vec_set(camera.x,dog_player.x);
camera.z += 5;
camera.arc=20;
camera.tilt -=25;
camera.pan= dog_player.pan;
camera.y -= (15 * sin(dog_player.pan));
camera.x -= (15 * sin(dog_player.pan));
camera.genius=dog_player;

Re: Camera.genius [Re: Gerrit] #251004
02/11/09 07:53
02/11/09 07:53
Joined: Nov 2008
Posts: 28
Athens, Greece
NeoJT Offline
Newbie
NeoJT  Offline
Newbie

Joined: Nov 2008
Posts: 28
Athens, Greece
Hi Gerrit.

the camera.genius work fine...
The entity is INVISIBLE ONLY if the camera position is INSIDE the entity (like 1st person).

When program execute "camera.y -= (15 * sin(dog_player.pan));" send the camera outside from the entity and make the dog_player VISIBLE.

Re: Camera.genius [Re: NeoJT] #251441
02/13/09 04:12
02/13/09 04:12
Joined: Sep 2005
Posts: 75
CA, Orange County
Gerrit Offline OP
Junior Member
Gerrit  Offline OP
Junior Member

Joined: Sep 2005
Posts: 75
CA, Orange County
NeoJT

I did not realize that the camera has to be in the entity for camera.genius to work. Now it makes sence.
Thank you for your help
Gerrit


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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