This is an interactive Christmas card made with a beta version of MIT's soon-to-be-released , web-browser-only, cloud-based App Inventor 2 Android Apps development software.
This app works very much like the 'dress-me doll' type children's video games where the child drags the clothing items to dress the doll figure.
---
Changes log 2015-12-25:
Changes log 2013-12-18:
The open, reusable Procedure blocks in purple shown in the image below are shared by each of the tree-trimming objects to be dragged and dropped on the Christmas tree.
In this way only one line of blocks in each of tree-trimming Objects TouchDown, TouchUp and Dragged event blocks is needed.
---
There are the Timer blocks for simple animations to blink the lights and move the flames in the fireplace.
The key to making drag-and-drop avoid the dreaded 'ImageSprite/Ball Cannibalism' when you have more than one object is well documented here on Taifun Baer's puravidaapps.com site.
Rather than an Integer value to determine the current object as Taifun did, I used the Object id block or component block and named it's container global variable CurrentObject.
During testing I found that when dragging the CurrentObject over another one that the other one's TouchUp event can be triggered, so I needed to add a test for CurrentObject in the shared TouchUp procedure.
---
Scott