Skip to content

Cutscenes

Alex Neargarder edited this page Jan 11, 2024 · 4 revisions

Variables

Variable Name Type Purpose Default Value
heading String Usually contains the character's name ???
subtitle1 String Contains the text below the character's name Joins the Battle!
headingScale float Determines how large the heading will be. 0.15
subtitleScale float If true add the missing jetpack sprite if a bro uses it. 0.10
playCutsceneOnFirstSpawn bool Determines whether the cutscene will automatically play the first time you spawn as this character. false
spritePath String Path to the image file that is displayed in the cutscene. Empty
spriteSize Vector2 Controls the scaling of the sprite. 0
spriteRect Rect Useful for repositioning sprites without having to try several anims. 0
spriteAnimRateFramesWidth Vector3 0
barkPath String Path to the sound clip that is played to announce the character. Needs to be in .wav format. Empty
fanfarePath String Path to the music that is played when announcing the character. Needs to be in .wav format. Empty
anim String Controls how the sprite and text move during the cutscene. The default should be fine for most cases. Empty
playDefaultFanfare bool Controls whether the default bro unlock music is played or not. true

Example

{
  "cutscene": {
    "heading": "Captain Ameribro",
    "subtitle1": "Joins the Battle!",
    "headingScale": 0.14,
    "spriteSize":
    {
      "x": 1,
      "y": 1
    },
    "spriteRect":
    {
      "x": 0,
      "y": 256,
      "width": 256,
      "height": 256
    },
    "spritePath": "captainAmeribroCutscene.png",
    "anim": "Intro_Bro_Brominator",
    "playCutsceneOnFirstSpawn": true
  },
}

Increasing the x value of spriteRect moves the sprite to the left, decreasing it moves it to the right. The value can be negative.

Increasing the y value of spriteRect moves the sprite up, decreasing it moves it down.

These x and y values are actually setting the lower left pixel of the character sprite, so if you alter them too much you can mess up the sprite by cutting off parts of it. If you need to alter the values but can't do so without messing up your character sprite, you'll need to change the image itself to move it in whatever direction you require.

Possible Values for anim

Intro_Bro_Rambro
Intro_Bro_Brommando
Intro_Bro_BABroracus
Intro_Bro_BrodellWalker
Intro_Bro_Brade
Intro_Bro_McBrover
Intro_Bro_BroInBlack
Intro_Bro_Brobocop
Intro_Bro_BroDredd
Intro_Bro_BroHard
Intro_Bro_Snake
Intro_Bro_Brominator
Intro_Bro_IndianaBrones
Intro_Bro_AshBrolliams
Intro_Bro_MrAnderbro
Intro_Bro_BoondockBros
Intro_Bro_Brochete
Intro_Bro_Bronan
Intro_Bro_EllenRipbro
Intro_Bro_CherryBroling
Intro_Bro_TimeBro
Intro_Bro_ColJamesBroddock
Intro_Bro_BroniversalSoldier
Intro_Bro_Brode
Intro_Bro_BroMax
Intro_Bro_DoubleBroSeven
Intro_Bro_Brodator
Intro_Bro_Brofessional
Intro_Bro_SethBrondle
Intro_Bro_BroHeart
Intro_Bro_Brocketeer
Intro_Bro_TankBro
Intro_Bro_Broden
Intro_Bro_Brolander
Intro_Bro_BroLee
Intro_Bro_DirtyBrory
Intro_Bro_Brommando
Intro_Bro_Xebro
Intro_Bro_ScorpionBro
Intro_Bro_Broffy
Intro_Bro_Desperabro
Intro_Bro_BroGummer
Intro_Bro_ChevBrolios
Intro_Bro_DemolitionBro