Page 1 of 1

setting a variable from multiple events

Posted: 07 Jan 2022, 15:28
by rubendesnoo
Hi, I am new to ventus. I would like to set a variable at a value, but I would like an event to be able to update this value, and few more other events too.

Someone has any idea?

Re: setting a variable from multiple events

Posted: 26 Jan 2022, 10:19
by Frederik
Hello,
welcome to the Ventuz world :)

Actually I'm not really confident what you want to do.
Maybe a short explanation: You can create a value of different kind of data types with Variable Nodes in the Logic area of the toolbox (E.g. float or integer.)You can set this variable yourself or bind it to a Data Channel of any other Properties in with the same data type in other Nodes.
This value will be updated constantly with every frame.

You can check out the Value Buffer Node. It takes the Value in the moment it gets triggered by an event and set it on a output.
I hope this helps :)
Regards,
Frederik