Skip to main content

The "vngen_set_cursor" Function

Syntax#

vngen_set_cursor(default, pointer);
ArgumentTypeDescription
defaultsprite/constantSprite or cursor state to assign as default cursor
pointersprite/constantSprite or cursor state to assign as pointer cursor

Description#

VNgen uses cursor states for visual feedback on desktop platforms when hovering clickable entities. By default, the system cursors are used, but some users may wish to replace system cursors with custom images of their own. This script assigns a pair of sprites to be displayed in place of system cursors for both default and hovering states. It is also possible to assign built-in cursor states as the default and pointer cursor, or hide cursors entirely with the constant cr_none.

Example#

vngen_set_cursor(spr_cur_default, spr_cur_pointer);