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;