Bro Code logoBRO CODE CRINDEPENDENT GAME DEV TOOLS
← All abilities
ABILITY 03

Ghost

Change sprite transparency and switch the ability object to a NoCollision layer.

Activation

PhantomButton

Example use

Explore the setup guide below to configure this ability.

Ability documentation
CHARACTER ABILITY
SETUP GUIDE

Set up this ability

Component
CharacterPhantom
Source
Scripts/Abilities/CharacterPhantom.cs
Animator bools
Phantom

Component dependencies

Requirements for this ability and its targets
ComponentWhere to add or assign itPurpose / setup
SpriteRendererCharacter or childRequired for the transparency change. Also create the NoCollision layer and configure collision settings for your game.
  1. The website calls this ability Ghost; its component class is CharacterPhantom. Use PhantomButton for input binding.
  2. Create the NoCollision layer in Tags and Layers. Configure the relevant collision matrix and CorgiController collision masks for the behavior your game needs.
  3. Use a character with a child SpriteRenderer and explicitly select PhantomButton if needed.
  4. Set PhantomAlpha (default 0.5), then activate the ability. It changes the ability GameObject layer and sprite alpha; stopping restores them.

Inspector reference

These are C# field declaration defaults. Existing prefab and scene values can override them. Shared fields are documented under Ability Configuration.

CharacterPhantom fields
FieldTypeDeclared default
PhantomAlphafloat0.5f

Usage notes

  • Configure collision settings for NoCollision; the ability changes the layer of its own GameObject.
  • Use PhantomButton for the Ghost ability.