This content has been marked as final. Show 3 replies
Thank you for your response but I am working on a Mac and it seems that the xtra is window only - is that correct?
I am taking a new approach and not using bitmap for path sprite but instead am using a vector for the path.
So now I think I can use testHit to check if my moveable sprite is over the path or not.
Seems to be working but i have never used testHit before so I am not sure if this is the best approach.
Anyone with any feedback?
And secondly, when my moveable sprite is dragged to the end of the path I would like to not have the hitTest function any more but am having trouble with this.
-- if sprite(3).locV < 66 then hitTest is no more (ie to stop the beep or whatever will replace the beep in the end)
Here is my hitTest behaviour which I put onto the moveable sprite
on beginSprite me
sprite(3).loc = point(403, 350)
on exitFrame me
x = sprite(3).locH
y = sprite(3).locV
if hitTest (sprite(2), point(x, y)) = #normal then nothing