• Log in or sign up for an account here: https://www.sythe.org/login

Looking for A* help

Blupig

BEEF TOILET

$5 USD Donor
Joined
Nov 23, 2006
Sythe Gold
1,609
Messages
7,145
Location
Canada
Discord Unique ID
178533992981594112
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
The last big notch on my game's to-do list is AI and pathfinding. I'm working in 2D and need a good way to implement A* into a tile system. Any help is appreciated! This is the only roadblock I've run into so far, and it's driving me insane.

My skype is blupig.sythe - additionally you can PM me.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
You can't just use the pseudocode that wikipedia has?
 
I personally can't help you, since I'm not into game programming but rather websites.
But why don't you post this question on stackoverflow? There are a lot of talented and helpfull people around there!
Best of luck :)
 
Chess Master
Do you have some sort of admissible heuristic? (It doesn't overestimate the cost to the goal tile?)

If you do, basically just keep an ordered queue of tiles to explore. (Tiles adjacent to already-explored tiles). Pick the tile with the lowest (cost to get to it + heuristic), explore that, add its neighbors to the queue, and repeat.
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
I figured it out with the help of a tutorial I found on like the 10th page of a google search. Thanks anyway everyone!
 
duelarena.gg
Back
Top