Penguin Action Toolkit
  • 🐧Welcome
  • Guide
    • Step-by-Step Guide
      • Step 1: Install PAT
      • Step 2: Tutorial Scene
      • Step 3: Character - Action States
      • Practice 0: Add an Input Tag
      • Step 4: Character - Tags
      • Practice 1: Combo
      • Step 5: State Modifiers
      • Practice 1.1 & Ex: Grant Tag Mod
      • Step 6: Animation Montage
      • Step 7: Trigger Animation Event
      • Practice 1.2: Back to Grant Tag Mod
      • Step 8: Animator
      • Step 9: Attributes
      • Practice 2: Cost HP
      • Step 10: Effects
        • Step 10.1: Hitbox & Hurtbox
  • Definition & Inspector Detail
    • Actions
      • Action State
      • State Modifier
      • Move Set
    • Tag
    • Attribute
    • Effect
    • Player
    • Input
    • Locomotion
  • Tutorial
    • Installation
    • Contents of the Assets
    • Character
      • Create a Character
    • Set Up Player
    • Create a new Tag
    • Create a new Modifier
    • Use Attributes
    • Effect
      • Create an Effect
      • Apply Effects
    • Animation
      • Animatior Controller
    • PAT Manager
  • Beneath the Feathers
    • The Other One
    • Help on the Way
    • Victim or the Crime
    • Unbroken Chain
  • PAT Game Jam
    • Save the Penguin
    • Schedule
    • Terms & Conditions
  • FAQ
    • Change to Your Own Model
Powered by GitBook
On this page
  • Hitbox & Hurtbox
  • Add Effect Mod
  • Write Your Own Code
Edit on GitHub
  1. Tutorial
  2. Effect

Apply Effects

PreviousCreate an EffectNextAnimation

Last updated 6 months ago

There's several way to apply Effects a Character:

Hitbox & Hurtbox

When hitbox is activated, if collided with hurtbox, it will send all effect it holds to the hurtbox's character if that's a successful hit. Hurtbox can be invincible if the character holds it's I-Frame tag. Also, a Hitbox will only hit a Hurtbox once before reactivating.

Although we used raycst, this hit detection still relies on box collision a lot, we recommend you give all Hurtbox a rigid body to enable the collision.

We generally recommend you to control hitbox with Attack with Hitbox Mod

Add Effect Mod

This add the effects it holds to character

Write Your Own Code

Code with, there's two ways to apply an effect to a character:

Add Effect:

This simply add the effect to a character. Good for single character cases.

Send Effect Package:

This call will let one character send effects to another character, and this action will be broadcasted to action events. Hitbox and Hurtbox are actually using this to deal damages. This call will also send a duplicate of the effect instead of the originally one to prevent reference issue. You shall use this method to achieve the between character interaction.

Hitbox
Hurtbox
The Add Effect Mod