Forum

Issue with Play anim nodes

02 November 2015 17:14 #4730
Hello!

I have a problem with the Play Animation node and I can't figure out what I'm doing wrong.

I started with the tutorial from Will about animation and I want to implement a kind of popup system.

When I click on the cube a popup comes in with an anim and when I click on the cone I want the popup should go out with another anim.

But I can't get the 2nd animation to play.

Here is my blend file.

Thank you!
02 November 2015 18:46 #4734
Hi JD,
The problem with your nodes is that if the cube is a "miss" the logic starts over and never gives your next object a chance to be selected. So the first "miss" needs to reroute to the beginning of the next hit test. See attached .blend.
~Will
Blend4Web Videos
https://www.youtube.com/channel/UCp6x8JP7oCiiTjbJorPPMsQ/videos
02 November 2015 18:54 #4735
Meh I feel dumb :D I totally overlooked the Miss condition hehe.

Thanks Will!
02 November 2015 19:16 #4738
You can use Select and Play nodes, so there will be only two of them
3D Generalist, contests administrator,
Blend4Web team.
art blog: http://contret-art.tumblr.com/
 
Please register or log in to leave a reply.