It's quite simple. Add Timer behavior to some static object on the layout, or create an invisible sprite for that.
Run this action once, for example in "On start of layout" event:
Sprite Start timer "spawn" for 1s (regular)
If will trigger "Sprite On Timer" event every second, which you can use to spawn hearts.