godot-escoria / escoria-issues

Central Escoria issue tracker
3 stars 0 forks source link

Animation command with direction awareness #337

Open balloonpopper opened 1 year ago

balloonpopper commented 1 year ago

Please make sure you talk to the community before creating an issue.

Is your feature request related to a problem? Please describe. If you want to animate a "pick up" animation, there's no way that I can see to run a non-walk/idle/talk animation that knows which direction the player is facing.

Describe the solution you'd like An anim_dir / anim_dir_block command that uses the facing direction to determine which animation to play. Alternatively, maybe an option on the existing anim command that is direction aware. So the command might be "anim_dir current_player pickup" which would run the "pickupdown" animation if the player is facing down. A default action might be to just play the "pickup" animation if a matching "pickup

" animation doesn't exist, but a "pickup" one does.

As per the alternatives command below, you currently need to anim_block, and then reset to idle manually. This also needs to be configured for every inventory item, and interactive game item. It would be good to have a way to set up default animations for each action (pickup/look/ etc) - similar to how the default actions command works at the moment.

Describe alternatives you've considered :pickup anim_block player grab inventory_add r5_wrench set_active r5_wrench false anim player idle_down

Additional context Add any other context or screenshots about the feature request here.

balloonpopper commented 1 year ago

@StraToN - This will need some planning to work out the best way for it to fit in with the engine.