![]() To add the moving mole we'll use a sprite. Set its TimeInterval to 500 milliseconds to make the mole move every half second. Drag out a Clock component it will go into the non-visible components area. The firing interval is determined by the Clock 's TimerInterval property. Here, you'll use the component as a timer that fires at regular internals. The Clock component provides various operations dealing with time, like telling you what the date is. You need to arrange for the mole to jump periodically, and you'll do this with the aid of a Clock component. You'll use Noise to make the phone vibrate when the mole is hit, similar to the way you made the kitty purr in HelloPurr. Also add a Sound component and name it "Noise". Set the Text of ScoreLabel to "Score: -". Put M圜anvas on top and set its dimensions to 300 pixels wide by 300 pixels high. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |