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.

Newcomers AppGameKit Corner / Pathfinding A*

Author
Message
damothegreat
User Banned
Posted: 18th Jan 2017 13:21 Edited at: 19th Jan 2017 19:02
...
damothegreat
User Banned
Posted: 18th Jan 2017 16:16 Edited at: 19th Jan 2017 19:02
....
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 18th Jan 2017 19:21
Good luck with this, I remember trying to make an a* path finding routing in DBP a few years ago but without much success.
damothegreat
User Banned
Posted: 18th Jan 2017 21:55 Edited at: 19th Jan 2017 19:02
....
damothegreat
User Banned
Posted: 18th Jan 2017 23:17 Edited at: 19th Jan 2017 19:02
....
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Jan 2017 00:36
If you're doing this to learn or for fun, then cool. But if you're doing this to use in a project, I can save you some time. http://www.zimnox.com/resources/agk/libraries/

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 19th Jan 2017 00:52 Edited at: 19th Jan 2017 19:02
....
damothegreat
User Banned
Posted: 19th Jan 2017 00:55 Edited at: 19th Jan 2017 19:03
...
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 19th Jan 2017 01:39 Edited at: 19th Jan 2017 01:41
Most things have been done a few times over on these forums

You can also look through the older DBpro snippets / 20 line challenges etc, most of it is easily convertable / improvable by AGK.

Here is an A* I did in DBpro, it is quite short and would be very easy to convert. It does need optimization for larger maps / paths.

drop an image on the .exe and it will pick two random points to pathfind between. It expects no larger than 1024 x 1024



http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 20th Jan 2017 01:56 Edited at: 20th Jan 2017 02:03
It's a bit silly and immature to edit out all of your posts just because someone disagrees with you or has already done something.

It also breaks any context and discussion that you have been involved in.

Someone else having written a solution should in no way stop you from writing one. Previous work is offered in an effort to help, either as a ready made solution, or as something to build off of and improve upon.

Likewise, a different opinion does not invalidate your own.

Be confident in yourself and remain in the conversations. No one is trying to 'shut you down' we're just discussing code in a community of coders.

I learn things from other people's postings all the time which often lead to improvements in my own solutions. Phaelax is certainly one of those that stand out in my mind as having posted a wealth of informative and clever snippets with a lot to be gained from reviewing them.

http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
damothegreat
User Banned
Posted: 20th Jan 2017 13:56
Yeah sorry about that - don't know what really came over me. just having a moment.

Anyway - I'm all good now.

Your examples ofPathFinding is quiet good.

I will still like to have another go at making my own - potentially grabbing ideas from both of your input to see if I can then optimise and reduce code further

Be a good test of my true abilities
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Jan 2017 21:42
Quote: "Phaelax is certainly one of those that stand out in my mind as having posted a wealth of informative and clever snippets with a lot to be gained from reviewing them. "


aww shucks

Your snippet looks like it has awesome random dungeon potential.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-11-22 09:49:24
Your offset time is: 2024-11-22 09:49:24