Triggering Multiple Actions via Single Button
Last updated
Last updated
It is possible to trigger multiple actions with a single button. To do that:
Launch the , the project shipped with Reality Engine
Create the as shown in the image above
You can optionally align the Particle Control
, Animation Control
, and Spotlight
for better control, as shown above.
Select the Animation Control
node, go to its Functions, right-click on the Play
property menu circle, select the Timeline
Go to the Actions module:
Right-click on the Play
function menu circle of the Start Particles
property group, select the Add Keyframe option
Right-click on the Play
function menu circle of the Play/Stop Ball Animation
property group, select the Add Keyframe option
Right-click on the Turnedon
property menu circle of the Lightsettings
property group, select the Add Keyframe option
Save the Action
The action above will trigger all Properties/Functions.
Now:
Click on the New Action
button, rename it if you like
Create a reverse version of the Action animation by repeating the same steps explained above except with two differences:
Add the Stop
function of Animation Control
node to the Timeline instead of the Play
function.
Save the Action
Activate the Form Builder module, click on the New Form
button, rename it if you like
Save the template Form
Click on the buttons and check the results via APM
Activate the (APM) on the Program
output pin of the Mixer
node
Change your camera angle by adjusting the UserTransform
property values of the UserTrack
node through the
Activate the module and click on the Create
button, rename it if you like
Select the Particle Control
node, go to its , right-click on the Play
, select the Timeline
Select the Spotlight
node, go to its , right-click on Turnedon
property menu circle, and select the Timeline
Click on the Turnedon
checkbox and deactivate it before you take it to the
Drag and drop the buttons of the first and second animations to , and customize it if you like by clicking on the button
Activate the module, select your template from