Ashaman88
2012-02-17 01:44:43
Hello hello!
So I've been trying to solve a little problem with my red salamander script. There is a tree right next to the spot where the traps are laid that changes colors to mimic one of the shades of colors the ropes make when they are dropped. I've tried using TPA's, DTM's, and Bitmaps, but I can't ever get it to completely ignore the tree. An easy solution would be to just exclude the tree from the search area. The only problem with that is my character moves enough so that a static box would only ignore the tree when I'm in the far west spot. I then tried to vary the size of my box determined by where I was standing w/ ObjDTM in area, but this wasn't very accurate and would eventually stop working all together (I had it print the size of the box on the smart screen so I could see when it switched back and forth).
I hope my problem makes sense. What I really need is to be able to recognize when I'm in the far east and when I'm in the far west and to change the search zone accordingly. Or to make it search within a circle instead as this would cut out a big trunk and/or all of the tree (it's in the corner so a box always picks it up)
approx. West pic
approx. East pic

Any ideas? If you need more explanation please ask! The first version of the code is here: http://villavu.com/forum/showthread.php?t=75070
So I've been trying to solve a little problem with my red salamander script. There is a tree right next to the spot where the traps are laid that changes colors to mimic one of the shades of colors the ropes make when they are dropped. I've tried using TPA's, DTM's, and Bitmaps, but I can't ever get it to completely ignore the tree. An easy solution would be to just exclude the tree from the search area. The only problem with that is my character moves enough so that a static box would only ignore the tree when I'm in the far west spot. I then tried to vary the size of my box determined by where I was standing w/ ObjDTM in area, but this wasn't very accurate and would eventually stop working all together (I had it print the size of the box on the smart screen so I could see when it switched back and forth).
I hope my problem makes sense. What I really need is to be able to recognize when I'm in the far east and when I'm in the far west and to change the search zone accordingly. Or to make it search within a circle instead as this would cut out a big trunk and/or all of the tree (it's in the corner so a box always picks it up)
approx. West pic
approx. East pic
Any ideas? If you need more explanation please ask! The first version of the code is here: http://villavu.com/forum/showthread.php?t=75070

