Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How do you change the point number in a Path? #6377
08/02/01 23:47
08/02/01 23:47

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I asked this question in the beginner's forum, no further answer. Here is the deal..
I created a path then I added a few points on it with vertice move (try to simulate the one in the office demo),now the path is done but all vertices in the path had the same number, can anyone tell me how to change them so they are sequenced correctly ? thanks for your time.

Re: How do you change the point number in a Path? #6378
08/03/01 00:41
08/03/01 00:41
Joined: Jul 2000
Posts: 2,037
Lafayette, LA USA
J
James Snydstrup Offline
Senior Expert
James Snydstrup  Offline
Senior Expert
J

Joined: Jul 2000
Posts: 2,037
Lafayette, LA USA
Tumitoto:

Ok, I'll give an explanation that I think is correct.

You can not rename individual path waypoints. You can only rename the entire path.

I think the trick is that the path 'box' contains point 1. The first point you make after this is point 2. The third point is point 3 etc. They do not appear labled this way in WED but I think that is how it works. So just note when you make your path which is point 1, 2, 3, etc. If your path is an open shape then this should be easy. Points will increment 1, 2, 3 either clockwise or counterclockwise from the point 1 'box'.

After you have your path made and have assigned the path to an entity you can then direct your entity to any way point useing;

ent_waypoint (vector, number);

number is the waypoint number from above
vector is set to that waypoint

You can then use

ent_nextpoint (vector);
ent_prevpoint (vector);

to cycle to the next or previos waypoint from the one selected above.

Anybody who has used paths please correct me if I am wrong. I haven't used paths a whole lot yet and am just summarizing this from the manual and my observations in WED.



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