BobboHobbo
2007-12-15 08:23:48
Well im making a fally yew cutter and i need to know whats the best way to find a Yew tree around all the other trees?
Any good Functions/Procs/Ideas please post em!
Going to bed now, :) hope theres something here tomoz :)
Thanks guys, Ben.
Harry
2007-12-15 08:25:23
You could try a TPointArray.
Bobarkinator
2007-12-15 10:28:26
TPoints + WizzyPlugin is the best way to find objects IMO
Sir R. M8gic1an
2007-12-15 14:55:10
also you could look for it with a color skip function.
FindColorSkipBoxArrayTolerance(var x, y: Integer; color, x1, y1, x2, y2, Tolerance: Integer; SkipBoxes: TBoxArray): Boolean;
look around for yew colors, they will probably also exist in other trees. MMouse, check up text and if it isn't you add that place to the TBox Array.
ps: dunno if this is the best and fastest way, but it'll keep you from looking over the same tress times and times again.
edit: you can also get closer to the yew tree by clicking it on the mm
~RM
BobboHobbo
2007-12-15 18:11:14
I made a function that if your non in a certain area of the symbol it will click and then look on a fixed place for the yew tree.
Ill have to learn Tpoints and stuff :)
R0b0t1
2007-12-15 19:44:29
You don't learn TPoints… You learn how to use them.
You should make sure a rare tree symbol is on the MM (check after every noticeable move perhaps, set a point w/ unique color and track it) and then use a find color spiral from the center to get the closest, and check the uptext. You can then try to elieminate those boxes, and when you move, track them… *cough*I shall work on this*cough*