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.

Author
Message
DARKBASIC PRO 3d WORLD EDITOR
11
Years of Service
User Offline
Joined: 2nd May 2012
Location:
Posted: 27th Jan 2018 23:04
Hello community.. Currently working on a 2d shooting game. Need an A* logarithm for enemies to manuever the smartest path around buildings. Problem is.. I have a low understanding on the concept. I understand the point systems somewhat regarding the lowest numbers as the quickest but the two lists and further beyond that I fail to understand. Here are a few screenshots to let you see what type of game Im creating.
- Infinity is Simplicity -

Attachments

Login to view attachments
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 28th Jan 2018 00:12
Hi
Red Blob Games has very good tutorials about path finding.
Pathfinding for Tower Defense and more
hoyoyo80
7
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 28th Jan 2018 05:53 Edited at: 28th Jan 2018 05:55
Ive share what i learn in A* in newcomers forums, its working so far to determine shortest path.

Hope it is useful:
https://forum.thegamecreators.com/thread/220550
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 28th Jan 2018 14:57 Edited at: 28th Jan 2018 15:11
You cold test if my old one still works ?
Its for agk,,,
https://forum.thegamecreators.com/thread/197547

Converted my old sample and is now in the pixelstein thread.
And the zipp here ............

Attachments

Login to view attachments
GarBenjamin
AGK Developer
7
Years of Service
User Offline
Joined: 30th Nov 2016
Location: USA
Posted: 28th Jan 2018 18:38 Edited at: 28th Jan 2018 18:40
Great stuff!
TI/994a (BASIC) -> C64 (BASIC/PASCAL/ASM/Others) -> Amiga (AMOS/BLITZ/ASM/C/Gamesmith) -> DOS (C/C++/Allegro) -> Windows (C++/C#/Monkey X/GL Basic/Unity/Others)
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 29th Jan 2018 08:36
I have a small pathfinding logic. On my PC it takes around 2000 milliseconds to search a 1000x1000 grid in BASIC with some obstacles, and the same grid and obstacles, 14 milliseconds with C++.

You can toggle show_search to 1 if you want to see it output graphic updates while it is searching.

It is not very well documented, but I can comment the code if you want to use it.

BASIC


C++
13/0
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 29th Jan 2018 10:47
I updated Phaelax's conversion of IanM's A* library to work with the current version of AppGameKit (original found here: https://forum.thegamecreators.com/thread/206280)

I updated to current code standards (removed need for gosub call and init function call) , added some helper functions and fixed a few bugs (Flood8 now works), I have the code on my Dev machine at home I will post the code later when I get home if you still need it.

Login to post a reply

Server time is: 2024-04-16 08:15:18
Your offset time is: 2024-04-16 08:15:18