0
$\begingroup$

Below is my Logic editor of this problem. I have my armature always playing a walk action, then when it collides with a property called "Player," it is supposed to play a die animation. (It is an enemy :) I have set priorities, but right now when "Player" collides with it, my armature just plain stops. Any ideas? Thanks! Logic Editor of Problem P.S. Tell me if I need to add more screenshots. :D

If there is any other way to accomplish the animations correctly, I would love that as well.

$\endgroup$
  • 1
    $\begingroup$ Total speculation: set a different animation-layer for the die-animation? Otherwise you could create a boolen-property of the enemy (default true), that is set false on collision. Animations are played: while true -> walk, if false -> die $\endgroup$ – Quacksilber Apr 25 '18 at 19:35
  • $\begingroup$ That sounds interesting. I am somewhat new to blender, however. Would you care to explain how to do that as an answer? I think I would benefit from it with bunch of other actions/armatures as well! $\endgroup$ – DaDudeII Apr 25 '18 at 21:27
  • $\begingroup$ Whuch one of my possible answers? Im not sure about the first one, but I guess the second one would work $\endgroup$ – Quacksilber Apr 28 '18 at 18:54
  • 1
    $\begingroup$ And since you said, you're new to the blender-game-engine, I want to inform you, that the game-engine will be deleted from blender upon the next blender version 2.8, so I don't know if it will be worth it for you to spend your time on learning the game engine. Blender is an awesome tool for 3d-stuff, but if you want to get in to serious game development, i'd recommend you to have a look into that post, which explains why why bge is taken out of blender and gives you professional alternatives: blender.stackexchange.com/questions/106972/…. $\endgroup$ – Quacksilber Apr 28 '18 at 19:25
  • 1
    $\begingroup$ I've never done games outside of the BGE, a friend of mine uses Unreal Engine and is quite happy with it, but I guess Unity is equally good. :) Maybe this article might help you pluralsight.com/blog/film-games/… $\endgroup$ – Quacksilber Apr 28 '18 at 20:31
1
$\begingroup$

First method (but dont know if that'll work):

enter image description here


Second method (more complicated but works defenitely):

enter image description here

  1. Add a game-property to your enemy. ( + Add Game Property )
  2. Set it to boolean and checked (= true). (See red boxes in the image)
  3. Connect the collision-sensor to a property-actuator.
  4. This actuator has to set the property to "false".
  5. Add a property-sensor for each action-actuator. While the property is true (enemy alive) the walk-animation will be played, when the property is false (enemy dead) the die-animation will be played.
|improve this answer|||||
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.