Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,733 guests, and 39 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera position #139864
07/06/07 11:01
07/06/07 11:01
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
how to make a simple fps camera??? just like in quake =p

Re: camera position [Re: AttosRH] #139865
07/06/07 12:04
07/06/07 12:04
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Simplest one

var head_vector[3];
function camera_function
{
while(player != 0)
{
vec_for_vertex(head_vector,player,150); //150 is nr of vertex top of the head
vec_set(camera.x,head_vector.x); //place camera allways at this vertex position
camera.pan = player.pan;
camera.tilt = player.tilt;
camera.roll = player.roll;
wait(1);
}
}


Last edited by tompo; 07/06/07 12:07.

Never say never.
Re: camera position [Re: tompo] #139866
07/06/07 16:50
07/06/07 16:50
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
what means "while(player != 0)"?

Re: camera position [Re: AttosRH] #139867
07/06/07 17:46
07/06/07 17:46
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
execute this function all the time when player is in level.
you can replace this with while(1) if You want to.
Cheers


Never say never.
Re: camera position [Re: tompo] #139868
07/06/07 18:29
07/06/07 18:29
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
how to make a situation like this?:

while(the player animation "walk" is running)
{
execute the actions on this curly brackets
wait(1)
}

Re: camera position [Re: AttosRH] #139869
07/06/07 21:00
07/06/07 21:00
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
someone?

Re: camera position [Re: AttosRH] #139870
07/07/07 08:00
07/07/07 08:00
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
you may do this using skills

example:
define _status,skill1;
define walk,1;

while(my._status == walk)
{
call_function();
or
do something here
wait(1);
}

Last edited by tompo; 07/07/07 08:35.

Never say never.
Re: camera position [Re: tompo] #139871
07/07/07 12:56
07/07/07 12:56
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
thanks tom =]


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