Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / simple pathfind usage?

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 27th Aug 2016 15:54
I was looking for pathfinding and came across this:


https://www.thegamecreators.com/codebase/view/b496ae7bec039ca2806967d3443fd672

But have no idea how you would make it so the S in the end follows and moves to the path, like add code where if you were to press space then the S starts moving until it reaches E!

I managed to have it display the path without having to press the button every time but that's about it!
Hail to the king, baby!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Aug 2016 22:01 Edited at: 27th Aug 2016 22:02
Are you trying to draw a path? Follow a path? Or find a path?

If you're wanting to do path finding, I converted an A* library to agk.
http://www.zimnox.com/resources/agk/libraries/

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 27th Aug 2016 22:59
I tired that,it has a few problems,one that drawbox you use as a function is now a built in agk command of course,this was easily fixed by just renaming drawbox everywhere to drawmybox,however after this it then moans about variable tx being used without getting initialised,so i am clueless!
Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-25 03:46:36
Your offset time is: 2024-11-25 03:46:36