Class in reactor_sprites.js

Sprite_Clickable

11 public functions in 5 groups · show internal (_) functions

The main menu, drawn by Scenes and Windows.

Familiar territory. Sprite_Clickable keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 1

initialize() Sets up a new instance.

Checks (True / False) 3

isPressed() Whether it is pressed.
isClickEnabled() Whether it is click enabled.
isBeingTouched() Whether it is being touched.

Events, Commands & Input 5

processTouch() Handles the touch.
onMouseEnter() Called when mouse enter happens.
onMouseExit() Called when mouse exit happens.
onPress() Called when press happens.
onClick() Called when click happens.

Updating & Drawing 1

update() Update.

Other 1

hitTest() Hit test.

Setup & Creation

initialize

method source
Sprite_Clickable.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isPressed

method source
Sprite_Clickable.prototype.isPressed()

Whether it is pressed. (Same as the RPG Maker MZ method of this name.)

isClickEnabled

method source
Sprite_Clickable.prototype.isClickEnabled()

Whether it is click enabled. (Same as the RPG Maker MZ method of this name.)

isBeingTouched

method source
Sprite_Clickable.prototype.isBeingTouched()

Whether it is being touched. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

processTouch

method source
Sprite_Clickable.prototype.processTouch()

Handles the touch. (Same as the RPG Maker MZ method of this name.)

onMouseEnter

method source
Sprite_Clickable.prototype.onMouseEnter()

Called when mouse enter happens. (Same as the RPG Maker MZ method of this name.)

onMouseExit

method source
Sprite_Clickable.prototype.onMouseExit()

Called when mouse exit happens. (Same as the RPG Maker MZ method of this name.)

onPress

method source
Sprite_Clickable.prototype.onPress()

Called when press happens. (Same as the RPG Maker MZ method of this name.)

onClick

method source
Sprite_Clickable.prototype.onClick()

Called when click happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Sprite_Clickable.prototype.update()

Update. (Same as the RPG Maker MZ method of this name.)

Other

hitTest

method source
Sprite_Clickable.prototype.hitTest(x, y)

Hit test. (Same as the RPG Maker MZ method of this name.)