With whack a mole games you usually have the hammer attached to your mouse.X and Mouse.Y (every tick).
And when you click you start the hammer down animation.
On mobile its something like
touch > on touched object Mole | system > create object > Hammer x=Touch.X and Y=Touch.Y
this should start an animation where the hammer falls and after animation end destroy hammer (maybe with a wait action in between)