Forum

Multiple outputs from nodes in Logic Editor

21 September 2015 18:33
Would be cool to have say a Select and Jump to have an output to a Play Animation node, a second one to play a sound, a third one to maybe hide an object somewhere.

This would require the node based system to work slightly differently, ie to fire off from the start node every frame, and to allow for different checks ( eg check if animation is at marker_DoorOpen, so the user can both check if the door is already open, and to choose to play the DoorClose animation next ).

This flow would be one way, with no need for a wrap-around for each branch.
22 September 2015 11:22
The current design assumes the absence of the control flow branching. We see no need for branching, moreover, it can create synchronization problems. In order to simultaneously playback two animations, we plan to implement the possibility to asynchronously evaluate nodes, i.e. the control will transferred to the next node without waiting when the current node is over. This way it'll be possible to simultaneously playback sounds, animations etc.
For now there exists a way to create more than one control flow - by using multiple Entry Point nodes.
Alexander (Blend4Web Team)
twitter
19 December 2015 14:55
Would be cool to have say a Select and Jump to have an output to a Play Animation node, a second one to play a sound, a third one to maybe hide an object somewhere.
Do Not Wait parameter which is now available for Play Timeline, Play Animation and Play Sound nodes can be used for this task.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.