|
|
Balancing MechanicUsing UE 4's blueprints system, I developed the stacking mechanic seen in the video. Once two players decide to stack, the person on top must ensure that the indicator on the bar never reaches the red areas. This is done by having various variables influence a "total balance value". This value weighs the top player's controller input the most followed by the bottom player's controller input. A drag value is also added so that the value gradually leans more and more towards the side it's currently on. For example if the value is less than the starting value, then the balance value will slowly decrease over time. A random value is also added to cause the balancing amount to be more erratic as time goes on, representing how the characters are getting tired.
|