2
$\begingroup$

I'm making a fighting game in the game engine, and I have 2 action actuators. One is always playing an idle animation on layer 1, and the other plays the attack animation when I press w on layer 0. As I can't always be sure the idle animation will be on frame 1 when the attack starts, I have it blend in to the attack animation, and it looks fine. However, when the attack ends, it snaps back to whatever frame the idle animation was on. Is there a way to blend back to the idle animation or assure it will be on frame 1 when the animation ends? Thanks.

$\endgroup$

1 Answer 1

0
$\begingroup$

Add a Boolean property to it to keep track if it's active.
A Boolean is a simple True / False variable.

Have the idle animation loop while True,
then reset to the first frame when False.

Use a Property Sensor to check it's value.
https://docs.blender.org/manual/en/dev/game_engine/logic/properties.html

$\endgroup$
1
  • 1
    $\begingroup$ And I assume on the actuator which resets it to frame 1, you have that fade in as well? $\endgroup$ Commented Dec 13, 2019 at 2:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .