This is an example of an animation -- a "game" if you wish -- created with Tumult Hype 3 Professional. I did not code anything, but everything was done with the graphical interface, timeline and actions available by default.

Certain actions are triggered by clicks in the window. However, you need to find clickable areas yourself. If you hit the right spot, something will happen. Further down the animation, two guns appear. Only one of them has ammo and will shoot a projectile but won’t always hit target. To start the interactive animation, click in this text area.