Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, bigsmack, 1 invisible), 1,341 guests, and 14 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
P_A_T_H_S #129055
05/10/07 09:29
05/10/07 09:29
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Small problem here.
Well i have a path code. It works very well until I want to make the enemy walk back the same path. How to do that?
Please help people.


Re: P_A_T_H_S [Re: MTD] #129056
05/10/07 09:49
05/10/07 09:49
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
I have two ideas...
1. create a thin elipsoid path and enemy will go around
2. not sure but maybe will work
if(node == last_node) {node = path_nextnode(my,node,-1);}


Last edited by tompo; 05/10/07 09:57.
Re: P_A_T_H_S [Re: MTD] #129057
05/10/07 10:02
05/10/07 10:02
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I've made a changePath demo, you can download it here

Re: P_A_T_H_S [Re: tompo] #129058
05/10/07 10:03
05/10/07 10:03

A
Anonymous
Unregistered
Anonymous
Unregistered
A



store the paths nodes in an array and you can all you need (forward/backward/jump to node)

mercuryus

Re: P_A_T_H_S [Re: tompo] #129059
05/10/07 10:04
05/10/07 10:04
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Well your idea is good but i need only one path , because the main idea is - when the enemy see the player, he runs back the same path to alert the base.

Re: P_A_T_H_S [Re: MTD] #129060
05/10/07 10:07
05/10/07 10:07
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
O.K. will try...

Re: P_A_T_H_S [Re: MTD] #129061
05/10/07 10:22
05/10/07 10:22
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
WHAT IS - path_nodepos ?
AND WHAT DOES IT DO ?
path_nodepos(0,0,0);???

Re: P_A_T_H_S [Re: MTD] #129062
05/10/07 10:26
05/10/07 10:26

A
Anonymous
Unregistered
Anonymous
Unregistered
A



path_nodepos didn't exists - it's a bug in the helpfile.

use path_getnode to get the nodes position.

Re: P_A_T_H_S [Re: ] #129063
05/11/07 10:07
05/11/07 10:07
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
The next problem is - how to make a new path scan code?
When i want to search a new path it makes strange things.
In the begin enemy walks it's path normal, but when he comes to the end he can't find another path? Let's say when the node 6 is taken then search a new path-but it didn't work...
Whats the problem ? ? ?
Script-
if(node == 6)
{
result = path_scan(pedalis2,pedalis2.x,pedalis2.pan, VECTOR(360,180,1000));
if(result == 0){error("[censored]");return;}
else{error("path_found");}
node = 1;
path_getnode(my,node,node_pos,null);
}

Re: P_A_T_H_S [Re: MTD] #129064
05/11/07 10:22
05/11/07 10:22
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
O.K.
Needed just - path_scannode(ENTITY*,var index);
Thats all.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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