A quick newbie question .... I see we can identify when one object is touching another object based on, say colour. But is there a method of saying something like "if this object is fully inside that object?"
I'm primarily thinking of odd boundary shapes ... I need to be able to sense when one shape is fully contained within a larger shape. Without using colour however.
Offline
Hm... I would think so... Try this:
Have a large sprite and a small sprite and a sprite that covers the whole screen.
The "cover" is at 100% ghost effect and is at the very front...
The small sprite is a layer behind the large one, so if the small sprite is completely behind the large sprite, it won't be touching the cover. You can then make the cover sense this : <touching {small} ?> and if it is true do one thing and if it is false do another.
Offline
Understand. But the small sprite has to visually show up on top of the large one. I;m thinking of something like playing pieces n a board. I suppose I could add another ghosted layer of the larger "piece" so that the layers would be, from top to bottom ...
cover (transparent)
background area copy (transparent)
small piece
background area
Does that make sense?
Offline