1
$\begingroup$

I have a simple issue that I'm trying to get around fixing. On trigger, an object is added and a message gets sent to that object. When the message is sent, the object plays an animation. The problem is that the animation gets played to all the objects and not the new one. How can I fix this? Thanks!

$\endgroup$
  • 1
    $\begingroup$ If you use direct hooking instead of messaging, when you duplicate the objects out, everything should still work on an individual basis. I know it's sloppy, but it works. $\endgroup$ – Scalia Aug 3 '15 at 22:46
  • $\begingroup$ What is the issue? All objects play the animation except the added one? or all object play the animation? or do you want a specific object to play the animation only? $\endgroup$ – Monster Aug 4 '15 at 8:00
  • $\begingroup$ Simple- the message is sent and then the object is added. your new object never gets the message $\endgroup$ – X-27 the fluffy unicorn Aug 4 '15 at 13:51
  • $\begingroup$ Even though you have the object getting added and the message getting sent in the same logic tick, essentially, your new object never gets the message. $\endgroup$ – X-27 the fluffy unicorn Aug 4 '15 at 13:54
  • $\begingroup$ Newly added objects get the messages from the last frame (when the edit object actuator was activated). It would not work if you use the message to add the new object and to trigger the animation. Then it is better to use two messages. $\endgroup$ – Monster Aug 6 '15 at 6:20
1
$\begingroup$

I've solved it by simply putting an always > and > action, this will play separately on all objects.

$\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.