![]() |
findpathinarray?
Couldn't find any decent docs for this, anyone want to point me in the right direction? :)
|
This is about the most I could get from it:
http://forums.graalonline.com/forums...indpathinarray |
Quote:
PHP Code:
"0,0","1,0","1,1","1,2","1,3","1,4","1,5","1,6","2 ,6","3,6","3,7","4,7","4,8" You basically make a multidimensional array containing "tiletypes" and pass in the types it can and cannot walk on, as well as where it can stop. You can also ignore the "walkable" types if everything not in blocking are walkable: PHP Code:
|
It's a bit silly that you can't just designate a endx and endy, rather than using a 'tile'...
This would be good for board-type games like Pacman or such, however. Still, the fact that Pacman would be an object and not a tile is bleh -_- |
| All times are GMT +2. The time now is 02:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.