Overlapping sprites -- highest z level gets control and others are ignored

166 views
Skip to first unread message

Scott Ferguson

unread,
Jul 2, 2014, 11:49:26 PM7/2/14
to app-inventor-de...@googlegroups.com
This will work if all overlapping sprites (Ball or ImageSprite) have a different Z property value.
A sprite that is considered 'above' another sprite should have a higher Z property value than the one below it.
In this example, a red, green and blue circle overlap.
The blue circle has the highest z level.
When the blue circle is touched where all three circles overlap, it executes it's block to display 'You touched the Blue ball!'



OverlappingSprites.aia
Reply all
Reply to author
Forward
0 new messages