HouraiTeahouse / FantasyCrescendo

A 2.5D Touhou Platform Fighter, By the fans, for the fans.
https://docs.houraiteahouse.net/FantasyCrescendo
GNU General Public License v2.0
107 stars 29 forks source link

Allow binding sound effects to hitboxes #218

Closed james7132 closed 6 years ago

james7132 commented 7 years ago

This will be the easiest way to add hitsounds: attach an audio source to the hitbox object, which will automatically play when it collides with a valid object.

pzhang87 commented 7 years ago

is there something that already handles sounds for when a move is used that doesn't necessarily collide with anything?

james7132 commented 7 years ago

Good point. I've been considering using https://blogs.unity3d.com/2017/06/06/unity-2017-1-beta-feature-highlight-timeline-cinemachine/ to define attacks instead of simple animations. This would allow orchestrating not only animations, but virtually everything about a character.

(The above link mentions beta, but this is now officially part of the engine as of the release of 2017.1)

james7132 commented 6 years ago

Hitboxes support binding arbitrary sound and visual effects now.