Example – Lights & Random


 

Here we have also used Triggers that call Action lists. This is for the same reason where in Game Creator 1 the core Actions were Mono Behaviors, and could utilize co-routines and Invokes. As Game Creator 2 does not work like this, many of the Instructions included in this Asset use a While loop, and hence do not finish while the Instruction is active.

 

This Example has 2 on Start Triggers. The first one calls the Spotlight Follow, Spotlight Ficker, and Spotlight Color Actions. The Spotlight Follow Instruction is set to Indefinite time and therefore will loop and follow the Player. The Spotlight Flicker Instruction is also set to Indefinite time and therefore will loop but the intensity and range can be set with min/max sliders.

 

The Spotlight Color Action has 3 instructions, one of each of the three spotlights. They each are set to random, with a separate duration. This Action list is then restarted.

 

The 2nd on Start Triger is for the Player movement. We have set the Player to not controllable and used the Random from List instruction to include 4 Actions with equal probability. Each of the 4 Actions will move the player to a specified Marker. This on Start Trigger will restart, after the Player has arrived at the appropriate Marker.


Useful Links

Pivec Labs

 

 

 

 

 

 Since

2005

 Awards

Full list

 Website

Piveclabs.com

 

 

 

 

ALL RIGHTS RESERVED © 2022

Main Menu