Thanks to visit codestin.com
Credit goes to kaplayjs.com

Function

onHover

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

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

param tag - The tag to listen for.

param action - The function to run when the event is triggered.

returns The event controller.

since v3000.0

group Events

kaplay logo

Layer

Miscellaneous