Fighters¶
The two fighters: player (you) and opponent. Move them, turn them, squash them, tint them, pose them, re-skin them,
pin them to the screen like sprites, outline them. All of it only in your own picture, so go wild.
How to use it
Every property here has several names for the same two fighters:
| Name | Who |
|---|---|
player / fighter[0] / puppet[0] |
you |
opponent / fighter[1] / puppet[1] |
the other one |
boyfriend / dad |
by the chart's sides: whoever plays the Boyfriend part / the opponent part - the same as player / opponent unless you play the opponent side |
Where: in a fight, the fighters in the world - seen only by you, the real players don't move. In practice, the two
puppets beside the lanes follow most of it (position, size, squash, turn, tint, poses, body parts, pinning);
clip*, outline*, depth and facing are fights only.
The numbered names belong to one mode each: fighter[i] = the fighters in a fight (its replay, watching it),
puppet[i] = the puppets beside the lanes in practice. In the other mode they do nothing (no error) - one script
can hold both. player, opponent, boyfriend and dad work in both.
Put one back with resetFighter(who[, duration]) (practice:
resetPuppet) or reset(player, duration). Shortcuts:
pose, setPose, setSkin,
setModel, swapFighters, bind,
focus. Body parts: Body parts. The whole picture: The fighters.
Psych: boyfriend.x, dad.alpha, characterPlayAnim, setObjectCamera · Kade: boyfriend, dad
Example code¶
-- The opponent slides in from the right into the middle, looks at you, then goes back.
function onEvent(p)
opponent.pinned = true
opponent.screenX = 1.3
opponent.screenY = opponent.homeY
opponent.facing = "camera"
tween(opponent.screenX, 0.5, beats(2), "cubicInOut")
after(beats(8), function()
tween(opponent.screenX, opponent.homeX, beats(2), "cubicInOut")
after(beats(2), function() resetFighter("opponent") end)
end)
end
Properties¶
| Property | Kind | Default | |
|---|---|---|---|
| player.x | number | 0 |
Moved to the camera's right, in blocks (practice: a block = the puppet's height / 2.1). |
| player.y | number | 0 |
Moved up, in blocks. |
| player.z | number | 0 |
Moved away from the camera, in blocks. |
| player.scale | number | 1 |
Its size, from the feet up. |
| player.turn | number | 0 |
Turned around its own vertical axis, in degrees: positive = to its right. |
| player.pitch | number | 0 |
The whole figure tipped forward (positive) or back, around its feet, in degrees. |
| player.roll | number | 0 |
The whole figure tipped to its own right (positive) or left, around its feet, in degrees. |
| player.alpha | number | 1 |
Its opacity. |
| player.color | colour | #FFFFFF |
Multiplied onto the skin - and onto its armor, cape and head item. |
| player.visible | switch | true |
false = gone. |
| player.animate | switch | true |
false = MineFunkin's own animation stops: it stands in its rest pose and only your values … |
| player.squash | number | 0 |
Squash and stretch, feet on the ground, volume kept: 0.3 = shorter and wider, -0.3 = … |
| player.pose | choice | "none" |
Plays one of MineFunkin's own poses: a lane's pose pops and holds like a held note, … |
| player.skin | text | "" |
Its Minecraft skin: "" = its own, "player" / "opponent" = that fighter's own (so … |
| player.model | choice | "default" |
The arm shape: "default" (what the skin says), "wide" (Steve, 4 pixels) or "slim" … |
| player.figure | text | "" |
In a fight against the dummy: a Minecraft mob stands in for it - "creeper", … |
| player.figura | switch | true |
The fighter's Figura avatar, if the player has one and you have Figura installed. false = … |
| player.burning | switch | false |
true = Minecraft's fire on it. Only the picture - nothing is hurt. |
| player.glow | number | 0 |
It lights itself up: 0 = the world's light, 1 = full light even at night. |
| player.helmet | text | "" |
What it wears on the head, by Minecraft's item name: "diamond_helmet", … |
| player.chestplate | text | "" |
Its chestplate (or "elytra") by the item's name. "" = its own, "none" = nothing. |
| player.leggings | text | "" |
Its leggings by the item's name. "" = its own, "none" = nothing. |
| player.boots | text | "" |
Its boots by the item's name. "" = its own, "none" = nothing. |
| player.mainHand | text | "" |
What it holds in its main hand: "diamond_sword", "torch", "minecraft:trident". "" … |
| player.offHand | text | "" |
What it holds in its other hand: "shield", "totem_of_undying". "" = its own, … |
| player.pinned | switch | false |
true = stuck to a spot on the screen like a sprite: screenX / screenY place its feet, … |
| player.place | choice | "" |
Which spot of the fight it stands on: "bf" (the spot in front, where the camera stands … |
| player.screenX | number | 0.5 |
A pinned fighter's feet, from left to right: 0 = the left edge, 1 = the right edge. … |
| player.screenY | number | 0.9 |
A pinned fighter's feet, from top to bottom: 0.9 = near the bottom. Above 1 = the feet … |
| player.depth | number | 0 |
How far from the camera a pinned fighter stands, in blocks: near = big. 0 = as far as it … |
| player.screenHeight | number | 0 |
A pinned fighter's height as a share of the screen (1 = as tall as the screen), whatever … |
| player.clipLeft | number | 0 |
Cuts the fighter off left of this share of the screen (0 = not cut). With the other three … |
| player.clipTop | number | 0 |
Cuts the fighter off above this share of the screen (0 = not cut). |
| player.clipRight | number | 1 |
Cuts the fighter off right of this share of the screen (1 = not cut). |
| player.clipBottom | number | 1 |
Cuts the fighter off below this share of the screen (1 = not cut). |
| player.facing | choice | "fight" |
"fight" = it faces where the fight turns it, "camera" = it looks straight at you … |
| player.outlineAlpha | number | 0 |
A line around the fighter's silhouette: 0 = none, 1 = full. |
| player.outlineColor | colour | #FFFFFF |
The outline's colour. |
| player.outlineOnly | switch | false |
true = only the outline shows - the fighter itself is gone (a silhouette drawn with a … |
| player.outlineWidth | number | 0 |
The outline's width in pixels at 1080p (it scales with the window). 0 = automatic, about … |
| player.homeX | number, read | 0.5 |
Where the fight puts its feet on the screen right now, from left to right - start a slide … |
| player.homeY | number, read | 0.9 |
Where the fight puts its feet on the screen right now, from top to bottom. |
player.x¶
number player.x · opponent.x · boyfriend.x · dad.x · fighter[i].x · puppet[i].x = 0
Moved to the camera's right, in blocks (practice: a block = the puppet's height / 2.1).
player.y¶
number player.y · opponent.y · boyfriend.y · dad.y · fighter[i].y · puppet[i].y = 0
Moved up, in blocks.
player.z¶
number player.z · opponent.z · boyfriend.z · dad.z · fighter[i].z · puppet[i].z = 0
Moved away from the camera, in blocks.
player.scale¶
number player.scale · opponent.scale · boyfriend.scale · dad.scale · fighter[i].scale · puppet[i].scale = 1
Its size, from the feet up.
player.turn¶
number player.turn · opponent.turn · boyfriend.turn · dad.turn · fighter[i].turn · puppet[i].turn = 0
Turned around its own vertical axis, in degrees: positive = to its right.
player.pitch¶
number player.pitch · opponent.pitch · boyfriend.pitch · dad.pitch · fighter[i].pitch · puppet[i].pitch = 0
The whole figure tipped forward (positive) or back, around its feet, in degrees.
player.roll¶
number player.roll · opponent.roll · boyfriend.roll · dad.roll · fighter[i].roll · puppet[i].roll = 0
The whole figure tipped to its own right (positive) or left, around its feet, in degrees.
player.alpha¶
number player.alpha · opponent.alpha · boyfriend.alpha · dad.alpha · fighter[i].alpha · puppet[i].alpha = 1
Its opacity.
player.color¶
colour player.color · opponent.color · boyfriend.color · dad.color · fighter[i].color · puppet[i].color = #FFFFFF
Multiplied onto the skin - and onto its armor, cape and head item.
player.visible¶
switch player.visible · opponent.visible · boyfriend.visible · dad.visible · fighter[i].visible · puppet[i].visible = true
false = gone.
player.animate¶
switch player.animate · opponent.animate · boyfriend.animate · dad.animate · fighter[i].animate · puppet[i].animate = true
false = MineFunkin's own animation stops: it stands in its rest pose and only your values (and the body parts')
move it. Wins over pose.
player.squash¶
number player.squash · opponent.squash · boyfriend.squash · dad.squash · fighter[i].squash · puppet[i].squash = 0
Squash and stretch, feet on the ground, volume kept: 0.3 = shorter and wider, -0.3 = taller and thinner.
player.pose¶
choice player.pose · opponent.pose · boyfriend.pose · dad.pose · fighter[i].pose · puppet[i].pose = "none"
Plays one of MineFunkin's own poses: a lane's pose pops and holds like a held note, "death" sits it down,
"none" lets go (a held pose eases out like a released note). While it's set, the notes don't change it.
Your own poses: setPose.
One of: "none", "left", "down", "up", "right", "death" (what they do).
player.skin¶
text player.skin · opponent.skin · boyfriend.skin · dad.skin · fighter[i].skin · puppet[i].skin = ""
Its Minecraft skin: "" = its own, "player" / "opponent" = that fighter's own (so the two can swap), or a
64x64 skin .png from the song folder (or its events/ / skins/ folder) - at most 8 files, 1 MB each.
player.model¶
choice player.model · opponent.model · boyfriend.model · dad.model · fighter[i].model · puppet[i].model = "default"
The arm shape: "default" (what the skin says), "wide" (Steve, 4 pixels) or "slim" (Alex, 3 pixels).
One of: "default", "wide", "slim".
player.figure¶
text player.figure · opponent.figure · boyfriend.figure · dad.figure · fighter[i].figure · puppet[i].figure = ""
In a fight against the dummy: a Minecraft mob stands in for it - "creeper", "minecraft:iron_golem" or a mod's mob
("mymod:boss"). When it changes, the one standing there is pushed out to the side and the new one pushed in from
the other side - both keep facing you. "" = the dummy itself again. The players around the fight see the same mob. Its
moves come from animation files (Boss opponents); a mob without one
hops on every note. Only the opponent when it's the dummy - on a player it does nothing. Set it with
setFigure.
player.figura¶
switch player.figura · opponent.figura · boyfriend.figura · dad.figura · fighter[i].figura · puppet[i].figura = true
The fighter's Figura avatar, if the player has one and you have Figura installed. false = hidden for this song: the fighter shows its plain Minecraft skin, so your song's poses, skins and tints look the way you made them. Only on your own screen. Without Figura it does nothing.
player.burning¶
switch player.burning · opponent.burning · boyfriend.burning · dad.burning · fighter[i].burning · puppet[i].burning = false
true = Minecraft's fire on it. Only the picture - nothing is hurt.
player.glow¶
number player.glow · opponent.glow · boyfriend.glow · dad.glow · fighter[i].glow · puppet[i].glow = 0
It lights itself up: 0 = the world's light, 1 = full light even at night.
player.helmet¶
text player.helmet · opponent.helmet · boyfriend.helmet · dad.helmet · fighter[i].helmet · puppet[i].helmet = ""
What it wears on the head, by Minecraft's item name: "diamond_helmet", "carved_pumpkin", "minecraft:dragon_head",
a mod's "mymod:crown". Any item can go on the head. "" = its own, "none" = nothing.
player.chestplate¶
text player.chestplate · opponent.chestplate · boyfriend.chestplate · dad.chestplate · fighter[i].chestplate · puppet[i].chestplate = ""
Its chestplate (or "elytra") by the item's name. "" = its own, "none" = nothing.
player.leggings¶
text player.leggings · opponent.leggings · boyfriend.leggings · dad.leggings · fighter[i].leggings · puppet[i].leggings = ""
Its leggings by the item's name. "" = its own, "none" = nothing.
player.boots¶
text player.boots · opponent.boots · boyfriend.boots · dad.boots · fighter[i].boots · puppet[i].boots = ""
Its boots by the item's name. "" = its own, "none" = nothing.
player.mainHand¶
text player.mainHand · opponent.mainHand · boyfriend.mainHand · dad.mainHand · fighter[i].mainHand · puppet[i].mainHand = ""
What it holds in its main hand: "diamond_sword", "torch", "minecraft:trident". "" = its own (a fighter's
hands are empty), "none" = nothing.
player.offHand¶
text player.offHand · opponent.offHand · boyfriend.offHand · dad.offHand · fighter[i].offHand · puppet[i].offHand = ""
What it holds in its other hand: "shield", "totem_of_undying". "" = its own, "none" = nothing.
player.pinned¶
switch player.pinned · opponent.pinned · boyfriend.pinned · dad.pinned · fighter[i].pinned · puppet[i].pinned = false
true = stuck to a spot on the screen like a sprite: screenX / screenY place its feet, whatever the camera does.
false = back where the fight wants it, at once.
player.place¶
choice player.place · opponent.place · boyfriend.place · dad.place · fighter[i].place · puppet[i].place = ""
Which spot of the fight it stands on: "bf" (the spot in front, where the camera stands behind), "dad" (the far
spot), "" = the fight's own (you in front). Set it with bind(who, "bf" | "dad") - that
sets both fighters, so they swap. The camera always stays behind the "bf" spot.
One of: "", "bf", "dad".
player.screenX¶
number player.screenX · opponent.screenX · boyfriend.screenX · dad.screenX · fighter[i].screenX · puppet[i].screenX = 0.5
A pinned fighter's feet, from left to right: 0 = the left edge, 1 = the right edge. Beyond = off the screen.
player.screenY¶
number player.screenY · opponent.screenY · boyfriend.screenY · dad.screenY · fighter[i].screenY · puppet[i].screenY = 0.9
A pinned fighter's feet, from top to bottom: 0.9 = near the bottom. Above 1 = the feet below the bottom edge.
player.depth¶
number player.depth · opponent.depth · boyfriend.depth · dad.depth · fighter[i].depth · puppet[i].depth = 0
How far from the camera a pinned fighter stands, in blocks: near = big. 0 = as far as it really is. The camera's zoom still makes it bigger or smaller.
player.screenHeight¶
number player.screenHeight · opponent.screenHeight · boyfriend.screenHeight · dad.screenHeight · fighter[i].screenHeight · puppet[i].screenHeight = 0
A pinned fighter's height as a share of the screen (1 = as tall as the screen), whatever the camera's lens.
0 = depth decides.
player.clipLeft¶
number player.clipLeft · opponent.clipLeft · boyfriend.clipLeft · dad.clipLeft · fighter[i].clipLeft · puppet[i].clipLeft = 0
Cuts the fighter off left of this share of the screen (0 = not cut). With the other three it shows the fighter only inside a box - in a window frame, a TV, a rift.
-- Only inside the frame drawn at 0.3-0.7 x 0.2-0.8.
player.clipLeft = 0.3
player.clipRight = 0.7
player.clipTop = 0.2
player.clipBottom = 0.8
player.clipTop¶
number player.clipTop · opponent.clipTop · boyfriend.clipTop · dad.clipTop · fighter[i].clipTop · puppet[i].clipTop = 0
Cuts the fighter off above this share of the screen (0 = not cut).
player.clipRight¶
number player.clipRight · opponent.clipRight · boyfriend.clipRight · dad.clipRight · fighter[i].clipRight · puppet[i].clipRight = 1
Cuts the fighter off right of this share of the screen (1 = not cut).
player.clipBottom¶
number player.clipBottom · opponent.clipBottom · boyfriend.clipBottom · dad.clipBottom · fighter[i].clipBottom · puppet[i].clipBottom = 1
Cuts the fighter off below this share of the screen (1 = not cut).
player.facing¶
choice player.facing · opponent.facing · boyfriend.facing · dad.facing · fighter[i].facing · puppet[i].facing = "fight"
"fight" = it faces where the fight turns it, "camera" = it looks straight at you (turn still turns it on
top).
One of: "fight", "camera".
player.outlineAlpha¶
number player.outlineAlpha · opponent.outlineAlpha · boyfriend.outlineAlpha · dad.outlineAlpha · fighter[i].outlineAlpha · puppet[i].outlineAlpha = 0
A line around the fighter's silhouette: 0 = none, 1 = full.
player.outlineColor¶
colour player.outlineColor · opponent.outlineColor · boyfriend.outlineColor · dad.outlineColor · fighter[i].outlineColor · puppet[i].outlineColor = #FFFFFF
The outline's colour.
player.outlineOnly¶
switch player.outlineOnly · opponent.outlineOnly · boyfriend.outlineOnly · dad.outlineOnly · fighter[i].outlineOnly · puppet[i].outlineOnly = false
true = only the outline shows - the fighter itself is gone (a silhouette drawn with a pen).
player.outlineWidth¶
number player.outlineWidth · opponent.outlineWidth · boyfriend.outlineWidth · dad.outlineWidth · fighter[i].outlineWidth · puppet[i].outlineWidth = 0
The outline's width in pixels at 1080p (it scales with the window). 0 = automatic, about 3.
player.homeX¶
number player.homeX · opponent.homeX · boyfriend.homeX · dad.homeX · fighter[i].homeX · puppet[i].homeX = 0.5
Where the fight puts its feet on the screen right now, from left to right - start a slide from here and it doesn't jump.
player.homeY¶
number player.homeY · opponent.homeY · boyfriend.homeY · dad.homeY · fighter[i].homeY · puppet[i].homeY = 0.9
Where the fight puts its feet on the screen right now, from top to bottom.