View source
class FocusCameraSongEvent
package funkin.play.event
extends SongEvent
Available on all platforms
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
Methods
getEventSchema():SongEventSchema
{
"char": ENUM, // Which character to point to
"x": FLOAT, // Optional x offset
"y": FLOAT, // Optional y offset
}
Returns:
SongEventSchema