Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I know a bit how to do it - at some interval do something But then I get a bit lost. I have a yellow light: YellowFlashingDoorLight. It has a behavior - every few seconds do something I set the MS to 1 The two actions I attached are: set random value I created a variable name: varRandom Min 0 and Max 100 Integers is checked Second action is 'if variable has a value do something' I set the variable to varRandom Is bigger than(>) Value 0 Action: Hide or Unhide Scene Node Visibility change type - Toggle Visibility Change with SceneNode - YellowFlashingDoorLight It does not flash at all - and no yellow light either. What did I do wrong or is this all wrong? Mike |
||||
|
Once a scene node is hidden All of its behaviour will stop working... Try adding the same thing to root scenenode instead of the yellow light itself... Add the the behaviour every few seconds do something to the root scene node then add random value.... Then if a variable has value then ... Hide or show yellow light.. It will work... |
||||
|
if I have a variable varRand, how can I make the game pause for varRand's value and then continue? Mike |
||||
|
what do u mean by game pause? do u mean to completely pause the game and then continue again from where left off... for the flashing light here is an example to get the working of flash light...i have set the time to 500ms instead of 1 ms... https://drive.google.com/file/d/... |
|