Where can I find code for these minigame features? (fast tapping, collecting objects with cursor)
I'm building a game using Adobe Animate, and I want to have some 'minigame portions' within it. I'm planning to have some basic minigame functions listed below, but I am unable to find code for them anywhere. I often see these features in online Flash games, so I was wondering if there is anywhere I can get code for these features from:
- Tapping the spacebar as quickly as possible to fill up a bar (the bar will deplete over time).
- Using the cursor to touch moving objects to fill up a meter.
For the second feature, I'd like to know if there is a way to lock the player's cursor within the boundary of a Movieclip? I'm planning to have the game within a Movieclip, rather than using the whole Scene for it. Also, I'd like to know if there's a way for the moving objects within my MovieClip to disappear once they move past the boundary of my Movieclip. Is it possible to make my objects move using the Timer function? I thought of using the Timeline to make them move, but since I want the speed of the moving objects to change depending on the difficulty setting, and I want a 'random direction' element, I think using the Timer function would be more efficient.
