This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-06 02:56:37

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Path finding

Could someone please point me to a few articles about (dynamic) path finding and maybe a few Scratch projects that use it. Any help would be nice.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2 2011-04-06 06:04:19

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Path finding

As in finding folder paths on a computer or finding a way through a maze?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-04-06 06:10:45

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Path finding

I made one ages ago : Pathfinding algorith

Now init i explained basically what waypoints are , customizing these waypoints according to your map you can use it wherever u want !


its dynamic and if u use byob it can find u paths in matter of milli-seconds!

(its also very very similar to the common game pathfinding algorithms used , the only different is they use a 4 arrays for the Z axix and  special actions like Jumps , dive , duck etc to be performed in order to follow a given link )  wink  feel free to use and if u find any trouble using it just let me known i am always happy to help 8-)

Last edited by fanofcena (2011-04-06 06:13:20)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#4 2011-04-06 07:24:26

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: Path finding

You might also want to look at A* path finding. I can't post links cause I'm a "New Scratcher" *sigh* but you can find some articles on Google if you search.

Offline

 

#5 2011-04-07 02:35:32

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Path finding

wcfs96 wrote:

You might also want to look at A* path finding. I can't post links cause I'm a "New Scratcher" *sigh* but you can find some articles on Google if you search.

What i sent is *sigh* nearly A* though ripped off as scratch is really slow doing exhaustive maths  big_smile


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#6 2011-04-07 06:30:18

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Path finding

@wcfs96, you should be promoted to Scratcher early. You seem to be really good at it, and have 24 posts.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#7 2011-04-07 07:13:34

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Path finding

Coolstuff has a project that finds a path around obstacles on a grid.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#8 2011-04-07 12:45:45

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: Path finding

wcfs96 wrote:

You might also want to look at A* path finding. I can't post links cause I'm a "New Scratcher" *sigh* but you can find some articles on Google if you search.

Thats what I was hoping to model my algorithm after, but I'm not sure how fast that will be.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#9 2011-04-07 15:45:04

wcfs96
New Scratcher
Registered: 2011-03-10
Posts: 37

Re: Path finding

Hardmath123 wrote:

@wcfs96, you should be promoted to Scratcher early. You seem to be really good at it, and have 24 posts.

That'd be nice because I do know Squeak Smalltalk and Java well.

Offline

 

#10 2011-04-07 15:49:55

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Path finding

Here is the best A* tutorial I've found: http://www.policyalmanac.org/games/aStarTutorial.htm


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#11 2011-04-07 16:13:31

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Path finding

fullmoon wrote:

Coolstuff has a project that finds a path around obstacles on a grid.

Thanks for that neat little reference! Yes, I did make that project a while back, and personally, I think it performs admirably.  big_smile

Offline

 

#12 2011-04-07 19:49:37

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: Path finding

BoltBait wrote:

Here is the best A* tutorial I've found: http://www.policyalmanac.org/games/aStarTutorial.htm

Thanks, looks really good  big_smile  (need to get done with some pesky home work before I read it tho  sad  )


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

Board footer