Skip to content

Conversation

@Sallarikr
Copy link

Added animations for stone characters, so that the corresponding emotion animation plays, when the projectile hits the stone wall

Assets/Altzone

  • Renamed animation frames
  • Added animations and animator controller and created folders for them

BattleEvents

  • Added BattleStoneCharacterPlayHitAnimation event

BattleCollisionQSystem

  • Added ProjectileEmotionBase and ProjectileEmotionCurrent fields to ProjectileCollisionData struct
  • Added emotion state values to OnTrigger2D method

BattleSoulWallQSystem

  • Added a send for BattleStoneCharacterPlayHitAnimation event into OnProjectileHitSoulWall method

BattleGameViewController

  • Added a subscription to BattleStoneCharacterPlayHitAnimation event
  • Added a call for PlayHitAnimation

BattleStoneCharacterViewController

  • Added PlayHitAnimation method
    • Implemented animation logic

BattleStoneCharacterAnimatorController

  • Added conditions and transitions for stone character animations

…acters #1218

Created angry, happy, love, playful and sad animations for stone characters at the top and bottom
…r2D #1218

ProjectileCollisionData: Added ProjectileEmotionBase and ProjectileEmotionCurrent fields
OnTrigger2D: Added emotion state values
…1218

Added subscribe for BattleStoneCharacterPlayHitAnimation event, method call for PlayHitAnimation
…ations to a single controller #1218

Deleted unnecessary animation controllers as well
…triggering #1218

Conditions for animations to play: BattleTeamNumber (int), AnimationIndex (int), Hit (trigger)
@Sallarikr Sallarikr self-assigned this Jan 26, 2026
@Sallarikr Sallarikr added Quantum Battle battleen liittyvät tehtävät labels Jan 26, 2026
@Sallarikr Sallarikr linked an issue Jan 26, 2026 that may be closed by this pull request
16 tasks
Renamed animator parameter Hit to Play
Renamed teamAlphaAnimator and teamBetaAnimator fields to be private
Removed GetComponent from animators
Modified Debug log to BattleDebugLogger
…te animator controllers for the stone characters #1218

BattleStoneCharacterBottomAnimatorController and BattleStoneCharacterTopAnimationController. Also removed the BattleTeamNumber parameter from animators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Battle battleen liittyvät tehtävät Quantum

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task: Kivihahmojen tunnetilareaktioanimaatiot

2 participants