onHoverUpdate(tag: Tag, action: (a: GameObj)=>void): KEventController

Register an event that runs every frame when game objs with certain tags are hovered (required to have area() component).

paramtag- The tag to listen for.

paramaction- The function to run when the event is triggered.

// Rotate bean 90 degrees per second when hovered
onHoverUpdate("bean", (bean) => {
  bean.angle += dt() * 90
});

returnsThe event controller.

sincev3000.0