Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Move long distances.

Ask for help
Post Reply
arolds
Posts: 6
Joined: 05.11.2015 5:23

Move long distances.

Post by arolds »

Hi there. I am trying to think of a way to make a script to move the character for long distances (for a treasure hunting script).
Pathfinding long distances (for example 1000 tiles) seems to be impossible with the regular functions (such as getpatharray and newmovexy).
Can anyone give me some tips on how to approach this?
Thank you!
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: Move long distances.

Post by nah nah »

the first way - split path
the secons - write a new mover function without the limit
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: Move long distances.

Post by Vizit0r »

pathfinding function were limited due to huge time for calculationg.
Thats way big distance should be divided to few parts.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply