Thread: Multitasking
View Single Post
  #13  
Old 05-08-2002, 09:24 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Frolic_RC2
Hmm...couldn't you use something like the A* pathfining technique?

Assign numbers from your current location to destination, all going fown one number. Destination is 8 tiles away, where you are would be 8, destination would be 0. From 8 you move to 7, things like that, and you could only move from a bigger number to smaller. And assign -1 to onwall...

I been meaning to try making something like that, never bothered though, mainly because I want a 2d array =P. I know it can be simulated, but it would be spiffy to have 2d arrays.

The pathfinder tyhm create will be able to track between many levels. not just within one level.

This one == hard to make if he has to go around a few levels to get to the one the player is in.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote