Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera on head #325216
05/25/10 13:41
05/25/10 13:41
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
I can`t move the head, when I move the mouse and I just can`t find the problem in script;

ANGLE bone_angle;

void pl_camera()
{
bone_angle.pan = (mouse_pos.x - screen_size.x / 2) / 15;
bone_angle.tilt = (screen_size.y / 2 - mouse_pos.y) / 20;
bone_angle.roll = 0;
ent_bonereset(my,"head");
ent_bonerotate(my,"head", bone_angle);
wait(1);
vec_for_bone(camera.x, player, "eye");
ang_for_bone(camera.pan, player, "eye");
}




Re: camera on head [Re: Random] #325218
05/25/10 13:44
05/25/10 13:44
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Just for another explain, Im trying to move the head with the mouse and I want the camera be placed to the "eye" bone.
But when I move the mouse nothing happens (of course...).



Re: camera on head [Re: Random] #325264
05/25/10 17:31
05/25/10 17:31
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
do you set a while loop with
vec_set(mouse_pos.x, mouse_cursor.x);

somewhere???


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: camera on head [Re: Espér] #325364
05/26/10 09:33
05/26/10 09:33
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Yes, it works know!
Thanks "Esper"!



Re: camera on head [Re: Random] #325801
05/28/10 11:00
05/28/10 11:00
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
But is there a way to set the camera to a vertex point from the player???
Something like;

vec_for_vertex(camera.x, player, "350"); //Didn`t work...

Becose that would be perfect!! tongue



Re: camera on head [Re: Random] #325802
05/28/10 11:30
05/28/10 11:30
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
put the 350 without the " "
like this

vec_for_vertex(camera.x, player, 350);

Last edited by Progger; 05/28/10 11:31.

asking is the best Way to get help laugh laugh laugh
Re: camera on head [Re: Progger] #325804
05/28/10 11:44
05/28/10 11:44
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Yes, that works alot better!
Thanks man!




Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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