Added analog controller precision movement for controllers. Fixed bugs with animation system involving movement velocities not being consistent nor updating correctly for up/down directions. New Steam Controller Configurations. Release Build 8577.
This commit is contained in:
@@ -780,9 +780,9 @@ void Player::AddAnimation(std::string state){
|
||||
animation.AddState(state,ANIMATION_DATA.at(state));
|
||||
}
|
||||
|
||||
void Player::UpdateAnimation(std::string animState,int specificClass){
|
||||
void Player::UpdateAnimation(std::string animState,int specificClass, const float frameMult){
|
||||
if(specificClass==ANY||specificClass&GetClass()){
|
||||
animation.ChangeState(internal_animState,animState);
|
||||
animation.ChangeState(internal_animState,animState,frameMult);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -871,7 +871,7 @@ void Player::Spin(float duration,float spinSpd){
|
||||
spin_angle=0;
|
||||
}
|
||||
|
||||
void Player::UpdateWalkingAnimation(Key direction){
|
||||
void Player::UpdateWalkingAnimation(Key direction, const float frameMult){
|
||||
std::string anim;
|
||||
switch(direction){
|
||||
case UP:anim=GetWalkNAnimation();break;
|
||||
@@ -879,7 +879,7 @@ void Player::UpdateWalkingAnimation(Key direction){
|
||||
case DOWN:anim=GetWalkSAnimation();break;
|
||||
case LEFT:anim=GetWalkWAnimation();break;
|
||||
}
|
||||
UpdateAnimation(anim);
|
||||
UpdateAnimation(anim,0,frameMult);
|
||||
}
|
||||
|
||||
void Player::UpdateIdleAnimation(Key direction){
|
||||
|
||||
Reference in New Issue
Block a user