First, the component design 1, the overall preview
2, the Image Wizard add
(1) First add a canvas in
Adjust properties
(2) Adding sprites
Add sprites, then upload a picture for property modification
3. Join Clock
Direct join, set to 1000ms
Second, block programming
1. Block function Establishment
(1) First select this module, change procedure to Movemole
Then add the module to the right, the composition of the diagram is as follows
The module in which the random number is found in math.
Focus on mastering the mapping coordinates of the Android app
A, the origin in the upper-left corner, the horizontal axis of the positive direction is horizontally right, the vertical axis is perpendicular downward
B, the anchor point is also in the upper left corner.
(2) constantly calling this function in the program
Find the two methods in screen and clock, then find the method we established in Produrce.
2, establish the ground mouse logic
It's not hard, you can try it.
3, the rest of the button settings
Above is the design of the reset button.
Here are the vibrating reminders.
Iii. Demonstration of results
Appinventor Study Notes (iv)--study on the application of hamster