Creating New Skills
The SkillData ScriptableObject defines special abilities that can be assigned to characters.
Each skill extends the base SkillData class and is executed by the CharacterProjectile during gameplay.
Several ready-to-use skills are already included in the template:
Explosion โ creates an area-of-effect blast.
Dash โ propels the projectile forward with extra force.
Clones โ spawns multiple additional projectiles mid-flight.
Step 1 โ Create a Skill Asset
In the Project window, right-click and select:
Create > SlingshotPuzzle > Skill > [Skill Type]Choose the type of skill you want to create (e.g., Explosion, Dash, Clone).
Rename the new asset to match the skill (e.g.,
FireExplosion,LightningDash).
Step 2 โ Assign to a Character
Open the CharacterData of the character you want to equip with a skill.
In the Skill Data field, drag and drop your new SkillData asset.
Save the character asset.
The character will now execute this skill when triggered in gameplay.
Editable Variables (SkillData)
๐น General
cooldown โ Time (in seconds) before the same skill can be used again.
skillName โ Multilingual display name for the skill.
description โ Multilingual short description shown in the UI.
unlockLevel โ Player level required to unlock this skill.
skillIcon โ Icon shown in UI menus and skill previews.
skillSfx โ Sound effect played when the skill is used.
skillEffects โ Visual effect prefab spawned when the skill is activated.
๐น Behavior
Execute(CharacterProjectile projectile) โ Abstract method that defines the actual gameplay effect.
Must be implemented by each custom skill.
Example: apply explosion force, spawn clones, modify projectile speed, etc.
โ
Example Uses
Explosion Skill โ Creates an impact explosion dealing area damage.
Dash Skill โ Increases projectile speed for precision hits.
Clone Skill โ Spawns extra projectiles, spreading across the map.
Developers can expand the system by creating new SkillData classes, inheriting from the abstract base and overriding Execute(). This makes it easy to implement unique mechanics like teleport, freezing obstacles, or multi-stage projectiles.
Last updated