is alice broken? -
11-12-2012, 05:44 PM
I feel like Alice isn't working properly, but I haven't used this program in a really long time, so i might just be doing something wrong, can anyone point out my mistake?
I want to be able to turn a flashlight on or off with one button during a game.
In the Events section, i have "When Enter is pressed, do <Flashlight.Switch>"
In the method i created "Flashlight.Switch" I have one variable called "On"
I have a tab that says If "On" == True, Flash Light.Turn Off, and then "On" set value to false.
In the "Else" section, i put Flashlight.Turn On, and then "On" set value to true.
I tested the on and off methods by themselves in the world.my first method section, and they worked fine, so there has to be something wrong with my "If_Else" tab. I'll include a snapshot of my work in this thread.
Can anyone point out my mistake or give me some other help?
|