Add all the components:
Edit the blocks to make the sound and random outcomes to work:
(optional) you can adjust it so when the phone is shaken, the 8 ball works.
From the Sensors palette, drag over an AccelerometerSensor sensor component. Notice that it automatically drops down to the “Non-visible components” area of the Viewer window.
The final app should look like this on the emulator:
Edit the blocks to make the sound and random outcomes to work:
(optional) you can adjust it so when the phone is shaken, the 8 ball works.
From the Sensors palette, drag over an AccelerometerSensor sensor component. Notice that it automatically drops down to the “Non-visible components” area of the Viewer window.
The final app should look like this on the emulator:
No comments:
Post a Comment