Changing the state of an object basd on a variable

May 26, 2014

Hi,

I've been looking through previous posts but haven't been able to find an answer to my problem.

I'm trying to create a board game with a main board and boxes that when clicked will take the user to a quiz question.

Based on the answer to that question being either right or wrong, I want to change the state of the box on the main board to either green or red.

I've set the variables by following the tutorials and have tried both true / false and value - value is the ideal as I can have 3 states (0 - for untried, 1 for incorrect and 2 for correct).

This part works fine and I can see from text references that I have inserted that values are being assigned when the user answers the question.

The problem I'm having is when I try to assign a state change based on the value. No matter what I try it will not change the state of the box.

Can anyone advise on where I am going wrong?

Many Thanks,


Sean

2 Replies
Phil Mayor

dependent on when you want the object to change you need to use one of two trigger

Change state when variable changes, if the variable changes on the slide you are onĀ 

Change state when timeline starts on condition variable equal to, if you want something to change at the start of a slide based on the variable value

This discussion is closed. You can start a new discussion or contact Articulate Support.