Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding the ability to play misc angled animations based on character direction #714

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

ItsBradyDavis
Copy link

@ItsBradyDavis ItsBradyDavis commented Nov 1, 2023

Feature

Similarly to how walk & speak animations can be played based on an esc_item's direction angle, using the anim_by_angle command allows for an esc_item to play an animation based on its angle.

anim_by_angle bob take_low
anim_by_angle_block bob take_low

This command will make the esc_item with global id "bob" play the directionally appropriate "take_low" animation assigned to the character's Angled Animations Array.

Angled Animations is meant to be used as an array of ESCAngledAnimationResource, which is a data object taking an animation_name String (in this case, "take_low", like picking something off the ground), and an animations Array of ESCAnimationName objects.

How To Test

  1. Open up a character scene. On the top level node, under Animations -> Misc Anims, add an item to the Angled Anims array and assign a ESCAngledAnimationResource to the array.
  2. Assign a string value to the animation name.
  3. Assign animations equal to the number of dir angles for the character / item.
  4. Run anim_by_angle {characterName} {animationName} in a .esc script

Screenshot 2023-10-31 at 8 05 07 PM

@ItsBradyDavis ItsBradyDavis marked this pull request as ready for review November 1, 2023 21:13
@BHSDuncan
Copy link
Collaborator

@ItsBradyDavis please take a look at the comments made in the Escoria dev channel on the Discord server. It's probably easier to discuss things there first at this point. Thanks.

@ItsBradyDavis ItsBradyDavis changed the title feat: Adding the ability to play miscellaneous animations based on character direction feat: Adding the ability to play misc angled animations based on character direction Nov 1, 2023
@StraToN
Copy link
Collaborator

StraToN commented Feb 14, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants