Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,246 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
simple ai #170496
12/01/07 21:15
12/01/07 21:15
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
how do i make my ai turn its pan to the player without using c_trace or c_scan. the reason for this is because i will have alot of enemies running around at the same time and running all those things will severly effect framerate. i understand there is a vec_rotate function that helps with well rotation. is there a way to reverse this where instead of the me entity rotating something around itself. the object rotates the me entity to face it. if this is true then please tell me how if its not or theres a better way without useing high memory usage then tell me that. ty


The only thing in life you can depend on is death and taxes.
Re: simple ai [Re: onslaught147] #170497
12/02/07 01:31
12/02/07 01:31
Joined: Mar 2005
Posts: 969
ch
Loopix Offline
User
Loopix  Offline
User

Joined: Mar 2005
Posts: 969
ch
Something like this...?

Code:

////look at player
vec_set(temp,player.x);
vec_sub(temp,my.x);
vec_to_angle(my.pan,temp);
my.tilt = 0;



Re: simple ai [Re: Loopix] #170498
12/02/07 15:48
12/02/07 15:48
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Also , for having a lot of traces at the same time and still increase the frame rate a little...instead of tracing every frame , do it one time every two frames. You wont notice the diffrence


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201

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