This class handles song events which change the camera focus. This lets you center the camera on a character, on a stage prop, or a specific position on the screen, as well as apply relative offsets, and even determine the speed and manner with which the camera moves into place.

Example: Focus on Boyfriend:

{
  "e": "FocusCamera",
	 "v": {
	 	 "char": 0,
  }
}

Example: Focus on 10px above Girlfriend:

{
  "e": "FocusCamera",
	 "v": {
	   "char": 2,
	   "y": -10,
  }
}

Example: Focus on (100, 100):

{
  "e": "FocusCamera",
  "v": {
    "char": -1,
    "x": 100,
    "y": 100,
  }
}

Constructor

new()

Methods

getEventSchema():SongEventSchema

{
  "char": ENUM, // Which character to point to
  "x": FLOAT, // Optional x offset
  "y": FLOAT, // Optional y offset
}

Returns:

SongEventSchema

Inherited Variables

Defined by SongEvent

id:String

The internal song event ID that this handler is responsible for.

Inherited Methods

Defined by SongEvent

getIconPath():String

Retrieves the asset path to the icon this event type should use in the chart editor. To customize this, override getIconPath().

Returns:

The path to the icon to display.

toString():String