Skip to content

character[n]

Eight sprite characters: a Psych sprite (a .png with its Sparrow .xml) that sings by itself. Name its poses by the animation names in its .xml - MineFunkin plays the idle on the beat, a sing pose on every note of its side, held through long notes, and the miss pose when you miss.

How to use it

character[0] to character[7]. Set file and side, then name the poses with characterPose; play your own poses with characterPlay.

Pose When MineFunkin plays it
idle on the beat while it isn't singing
danceLeft, danceRight instead of idle, one after the other every beat (a GF)
left, down, up, right a note of its side in that lane - it stays one beat after the note
leftHold ... rightHold over and over while a long note is held (else the sing pose's last frame stays)
leftMiss ... rightMiss you missed a note in that lane
cheer every cheerEvery notes of your combo
sad your combo of 10 or more broke

Works in fights and in practice, drawn on the screen like the pictures. The 3D fighters stay - switch the world off (stage.world "off") for a sprite-only song, or keep only the fighters with "fighters".

Psych: characters/*.json (animations, offsets, flip_x, scale) · Kade: —

Example code

-- A Boyfriend sprite that sings your notes.
function onStart()
    character[0].file = "characters/bf.png"     -- + bf.xml next to it
    character[0].side = "bf"
    character[0].x = 0.78
    character[0].y = 0.92
    characterPose(0, "idle", "BF idle dance")
    characterPose(0, "left", "BF NOTE LEFT", 5, -6)
    characterPose(0, "down", "BF NOTE DOWN", -20, -51)
    characterPose(0, "up", "BF NOTE UP", -46, 27)
    characterPose(0, "right", "BF NOTE RIGHT", -48, -7)
end

Properties

Property Kind Default
character[].file text "" The sprite: a .png with its Sparrow .xml of the same name next to it, from the song …
character[].side choice "none" Whose notes it sings: "bf" = the chart's player side, "dad" = the opponent side, …
character[].x number 0.5 Where its feet are, across: 0 = the left edge, 1 = the right. The middle of the bottom of …
character[].y number 0.9 Where its feet are, down: 0 = the top, 1 = the bottom.
character[].scale number 1 Its size: 1 = the sprite's own pixels on a 1280 x 720 screen - the size it has in a Psych …
character[].alpha number 1 Its opacity.
character[].color colour #FFFFFF A tint multiplied onto it.
character[].flipX switch false Mirrored.
character[].layer choice "back" The layer it's drawn on. In a fight with the world on, "stage" is …
character[].order number 0 Its place within the layer, together with the pictures and texts there: higher = in front.
character[].fps number 24 How fast its poses play, frames a second.
character[].danceEvery number 0 It dances every this many beats. 0 = by itself: every beat with danceLeft / …
character[].cheerEvery number 0 Its "cheer" pose plays every this many notes of your combo. 0 = never.
character[].smooth switch true Smoothed when it's scaled. false = sharp pixels (pixel-art sprites).
character[].follow number 0 How much it moves and grows with the fight camera, like image[n].follow: 0 …

character[].file

text character[].file = ""

The sprite: a .png with its Sparrow .xml of the same name next to it, from the song folder (or its events/ folder). "" = no character in this slot.

character[].side

choice character[].side = "none"

Whose notes it sings: "bf" = the chart's player side, "dad" = the opponent side, "both", or "none" - it only dances and reacts (a GF, a crowd).

One of: "none", "bf", "dad", "both".

character[].x

number character[].x = 0.5

Where its feet are, across: 0 = the left edge, 1 = the right. The middle of the bottom of its idle pose stands there.

character[].y

number character[].y = 0.9

Where its feet are, down: 0 = the top, 1 = the bottom.

character[].scale

number character[].scale = 1

Its size: 1 = the sprite's own pixels on a 1280 x 720 screen - the size it has in a Psych mod, whatever the window.

character[].alpha

number character[].alpha = 1

0 – 1share of the screen

Its opacity.

character[].color

colour character[].color = #FFFFFF

A tint multiplied onto it.

character[].flipX

switch character[].flipX = false

Mirrored.

character[].layer

choice character[].layer = "back"

The layer it's drawn on. In a fight with the world on, "stage" is drawn like "back".

One of: "back", "lanes", "front", "top", "stage".

character[].order

number character[].order = 0

Its place within the layer, together with the pictures and texts there: higher = in front.

character[].fps

number character[].fps = 24

How fast its poses play, frames a second.

character[].danceEvery

number character[].danceEvery = 0

It dances every this many beats. 0 = by itself: every beat with danceLeft / danceRight, else every 2nd beat.

character[].cheerEvery

number character[].cheerEvery = 0

Its "cheer" pose plays every this many notes of your combo. 0 = never.

character[].smooth

switch character[].smooth = true

Smoothed when it's scaled. false = sharp pixels (pixel-art sprites).

character[].follow

number character[].follow = 0

0 – 1share of the screen

How much it moves and grows with the fight camera, like image[n].follow: 0 = fixed on the screen, 1 = in the world.