0
$\begingroup$

In the BGE I need - remember location after action. I have button - when I press - character do a step forward. I want make when the another press character begin step from a new position, after old step.

enter image description here http://joxi.ru/KAxeW4jcW7qgr8

just remember this new position after step.

$\endgroup$
1
$\begingroup$

Your question is a bit confusing, but maybe you should rebuild your animation so that the step is taken in place, and you should move the armature instead.

If you dont't want to do this, then you need to add a python script to move your object to the exact position where you animated step ends... You must get the object's world position and increment it by whatever distance it travels in your animation. The script is only activated at the end of your animation... you can use the frame property on the action actuator to control this.

hope this helps Nuno Estanqueiro

$\endgroup$
  • $\begingroup$ thank you very much, I try to rebuild and add movement for cube parent but it's not work for me, I miss something. can you see this logical and tell more detailed what wrong drive.google.com/file/d/0B8AB9z2m-RC1ak1TdVNoc2RBREk/… it's without cube version $\endgroup$ – 6r0m Dec 1 '15 at 21:57
  • $\begingroup$ Separate movement from animation. To let the game work, you need motion only. The animation is "just" to make it look like nice. Basically: the animation is not the cause of the motion. $\endgroup$ – Monster Dec 2 '15 at 4:57
  • $\begingroup$ Thank you, Monster! you here too)) but separating animation and parenting for cube give not smothly effect. legs move always. I solve this blenderartists.org/forum/… but not smooth animation effect a little dissapointing $\endgroup$ – 6r0m Dec 2 '15 at 14:12

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.