Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I don't know if I'm doing it wrong or what (I don't think I am), but variables simply don't work for me. I'll explain what I did: I made a "Before first drawing do something" event in the root scene node and set the variable "task-completed" to 0. I then set it so it'll check "if task-completed = 1 then play a sound" and I left the else statement empty. I made it so when you click the default cube it sets the task-completed variable to 1. That, in theory, should play my sound. It doesn't. What am i doing wrong? |
||||
|
you set the "if task-completed = 1 then play a sound" in the "Before first drawing do something"?? that code only ran once, in the very beginning and is no longer checking for variables. |
||||
|
hmm, ok, though how would I make an object check a variable aside from doing it "every few seconds"? |
||||
|
you could probably use the javascipt interface for that by putting this code in the 'Before first drawing do something'... function onFrameDrawing() |
|