I can change a variable to 1 when a user presses the number 1 on the keyboard but I also need to use negative numbers, so is it possible to set a variable to -1 when a user presses the minus key and then the number 1?
I can only get it to work with one keypress or with two buttons at the same time. Is there a work around that allows for two button presses in sequence?
I figured it out I had to use another true/false variable that that is toggled when the user presses the minus key then use that as a condition for assigning the variable negative or positive when the user presses the number 1
2 Replies
I figured it out I had to use another true/false variable that that is toggled when the user presses the minus key then use that as a condition for assigning the variable negative or positive when the user presses the number 1
Glad you found a solution, Tom and thanks for coming back to update us!
This discussion is closed. You can start a new discussion or contact Articulate Support.