Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: AI ?!  (Read 865 times)
BeDi
Customers
Community Member
*****
Posts: 105


« on: March 09, 2005, 01:42:04 PM »

How does the AI function work ?
This code generates the following error :

Code :
Dim Path As TVPath, lngPath As Long
Set AI = New TVAI
Set Path = New TVPath
With AI
    .InitGridSystem 512, 512
    Path = .FindGridPath(0, 0, 64, 64, lngPath)
End With

Error :
Object doesn't support this property or method.

Is the grid system faster then the nodes ?
Logged
LAO88
Community Member
*
Posts: 321


WWW
« Reply #1 on: March 09, 2005, 05:22:38 PM »

I dont really use the neew Ai of the 6.5 but.... i have used the Ai from 6.2 and i have to put something like CreateAiGraph next u have init the nodes...

If im wrong .... i will feel like stupid posting something that i havent test yet  Tongue
Logged

BeDi
Customers
Community Member
*****
Posts: 105


« Reply #2 on: March 11, 2005, 03:36:54 PM »

Quote from: "LAO88"
I dont really use the new Ai of the 6.5 but ... I have used the AI from 6.2 and I have to put something like CreateAiGraph next u have init the nodes ...

No, the function you mean only exists in the node system...

Looks like the new grid function isn't used much :?
Logged
LAO88
Community Member
*
Posts: 321


WWW
« Reply #3 on: March 11, 2005, 08:17:46 PM »

Sorry the function is CreateNodeGraph  :oops:
Logged

BeDi
Customers
Community Member
*****
Posts: 105


« Reply #4 on: March 12, 2005, 11:21:32 AM »

Hehe was forgotten the 'Set'.
Set Path = .FindGridPath(0, 0, 50, 50, lngPath)

Now it works Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks