@pspeed are you thinking of Idle
state as a Mobility state or a CharacterAction ?
Edit:
I hope you can add support for layering stuff in MobAnimationState, I am having hard time trying to figure out how should I do it.
Currently there are
private Set<Mobility> mobility = new HashSet<>();
private Mobility primary;
but seems they are not used ?
Also it seems Walking/Jumping/Idle states are managed separately than Mobility and CharacterAction ? Shouldnât walk and jump mobility states set by CharInputDriver ?
Regarding setBaseAnimation()
what do you mean by base animation ? How is setting action (in your comment below) is different than setBaseAnimation() ? :
public void addAction( String a ) {
if( Objects.equals(a, this.action) ) {
return;
}
this.action = a;
// Set the animation on the character
}
by // Set the animation on the character
, do you mean it should be handled differently from setBaseAnimation() ?
Sorry if my questions are noobish. Will appreciate any help to figure out them.