Junior
2007-04-13 17:01:32
Ok, I made a procedure to open up a door, but it doesnt see to be working, it never finds the bitmap I provided. I used FindBitmapToleranceIn. I was looking at FindDTMRotated, and I thought about making a DTM. Now what do you think is better, a bitmap or a DTM for this kinda procedure? The bitmap I used consisted of just the top of the door, but not the whole thing, a little slice of it. For the DTM I was thinking about using 2 points, one for the left side of the door and the other for the right, both points are going to be from the top of the door. Ill show you the picture, and the procedure and how I used it.


if (FindDTMRotated(DoorDTM, x, y, MSx1, MSy1, MSx2, MSy2, - 2.0, 2.0, 1, AngleVar)) then