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
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 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
Focusing between 2 Objects Camera #70651
04/12/06 23:58
04/12/06 23:58
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Hi i wrote a little Camera script that shows the player from 3rd Person view and focusing to another entity (enemy or what you want) , the player is always between Camera and the other entity . Maybe its usefull for someone .

Start wed and run the script , move with cursor keys .
This is my old "Record a Demo" script that i modifyed with that Camera , so you can still record and playback a demo with the F1-F3 Keys.

Download the Script and test Level



Shinobi ... out ..

Re: Focusing between 2 Objects Camera [Re: Shinobi] #70652
04/13/06 02:16
04/13/06 02:16
Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
BlueBeast Offline
Serious User
BlueBeast  Offline
Serious User

Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
Hi Shinobi...

Is there any other directions for how to work the level to see the code in action?

I had a problem with running the level, an error with the font in the code. I fixed that, then 'played' the level, but i didnt see anything resembling your description. But I just ran it as-is, so thats why I ask for suggestions on this.

Let us know

Jason


Gamestudio Pro 6.4
Pentium 4 3.0 GHz 800MHz BUS
AtiRadeon 9800 pro 256Mb 21" Monitor
1 Gig DDR RAM
36 Gig RAPTOR SATA+ 120 Gig SATA
SB Audigy 2 w/ 450 watt Logitech Z680 5.1

www.nordicepitaph.com
Re: Focusing between 2 Objects Camera [Re: BlueBeast] #70653
04/13/06 21:35
04/13/06 21:35
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
hmm i dunno why it dosent run but i can puplish and pack it for you if you like.
Then you only have one exe file to start the level and walk around.

i can send it to you with a mail just drop me your mail adress.

Re: Focusing between 2 Objects Camera [Re: Shinobi] #70654
04/15/06 19:45
04/15/06 19:45
Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
BlueBeast Offline
Serious User
BlueBeast  Offline
Serious User

Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
LOL Boy, I'm not thinking straight

I misunderstood what the script does. I think the word 'focus' threw me off, I expected the surroundings to blur a bit except for the entity the camera is viewing.

The camera is always centered on a particular entity, but follows the player in 3rd person view.

This is great for when fighting a 'final boss'!

Great script!

Jason


Gamestudio Pro 6.4
Pentium 4 3.0 GHz 800MHz BUS
AtiRadeon 9800 pro 256Mb 21" Monitor
1 Gig DDR RAM
36 Gig RAPTOR SATA+ 120 Gig SATA
SB Audigy 2 w/ 450 watt Logitech Z680 5.1

www.nordicepitaph.com
Re: Focusing between 2 Objects Camera [Re: BlueBeast] #70655
04/15/06 20:13
04/15/06 20:13
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
This is a nice 3rd person script but can you make one that focus on the player itself


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Focusing between 2 Objects Camera [Re: BlueBeast] #70656
04/15/06 20:14
04/15/06 20:14
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Yes that was my bad , i should explain it better . But anyway you got it and yes it could be usefull for a final Boss or an item that you need to get or something simular.

EDIT: sorry Frazzle saw your post to late . Yes its Possible (if i understood you right) you can change it also from the Enemy or that other Entity to the player instead from player to the Enemy

Last edited by Shinobi; 04/15/06 20:17.
Re: Focusing between 2 Objects Camera [Re: Shinobi] #70657
04/15/06 20:18
04/15/06 20:18
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Well never mind Shinobi, I already found out
a solution


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Focusing between 2 Objects Camera [Re: frazzle] #70658
04/15/06 20:28
04/15/06 20:28
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Well actually I used your code just for the 3rd person
view if you don't mind.
But do you mind that I can explain my problem to you
Well I have got the player to moce his pan with the mouse force x but the mouse
force y can control the up and down movement, this is the code:

Code:
   
var temptilt = 0;

temptilt += 5 * mouse_force.y * time; //mouse to look up and down
player.pan -= 20 * mouse_force.x * time; //using the mouse to turn left and right
camera.z=player.z+100;
camera.tilt=-10;
camera.pan = player.pan;
camera.x = player.x - 300 * cos (player.pan) + ;
camera.y = player.y - 300 * sin (player.pan) + ;




Any suggestions ??

Last edited by frazzle; 04/15/06 20:28.

Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Focusing between 2 Objects Camera [Re: frazzle] #70659
04/15/06 21:30
04/15/06 21:30
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Hehe hope i got what you want , you want to change Camera.tilt with mouse_force.y ...right ?

Add this code to the "starter focusing_camera" in the focus.wdl

var temptilt; // this one out of the starter

if(mouse_force.y>0){temptilt+=2*time;}
if(mouse_force.y<0){temptilt-=2*time;}
player.pan -= 20 * mouse_force.x * time;

Focus_cam.tilt=temptilt;



this way you hopefully got what you want

Last edited by Shinobi; 04/15/06 22:32.

Moderated by  adoado, checkbutton, mk_1, Perro 

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