Skip to main content
Inspiring
March 24, 2016
Question

Need help with evaluating button state changes

  • March 24, 2016
  • 1 reply
  • 254 views

Hi everyone,

I've tried to explain my problem here in a published slide.  I'm basically not understanding how to advance button states and also score those states.  Thanks for any help.

Bill

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    March 24, 2016

    Would have preferred seeing the real question here. This is probably why you didn't see an answer yet. Can you explain what you want exactly, because I have issues with the terminology. What do you mean by 'score these states'?

    As for the conditional action that is described, you could have reverted the sequence of the decisions, or start with a high number and decrement instead of increment. I'm waiting for explanation of the 'score' that you want.

    Inspiring
    March 25, 2016

    Hi Lilybiri,

    Sorry about that.  I thought it would be easier to read while looking at the button on the slide. But I can see it would be a mess if everyone did this. I'm pasting the question below.  I'm not familiar yet with the terminology; I'm in education, and not much of a website creator, though I'd like to be.  By "score" I just mean evaluate- be able to give a right/wrong score based on what state an object is in when the user clicks a submit button.

    I don't understand how decrementing would make a difference. I've got 8 states for buttons - each with the letter A-H, and I have a condition that when the variable value is 9 - it reverts to 0.  So that's not a problem. My problem is that in advanced action I can't command - go to next state - I need to say which state (unlike in simple actions).  So I need to say "if variable=2, then go to state B.  But I'm also including a separate command to increment the variable by 1 ( with the idea that the next click of the button, when variable=3, it will go to state C).  But that doesn't work.  I wish I could tell it to use the current variable for the current state change, then increment and not respond to that increment until the next click.  Thanks!

    Bill

    --------------------------------------------------

    I couldn’t figure out how to click a button and change states (A through H) and also track the state for scoring *with infinite attempts).  At first I gave the Red button a conditional action to increment the number variable and also to change states based on the new number - Ex:

    If numb_var = 1, show State A and increment numb_var by 1;

    if numb_var = 2, show State B and increment the numb_var by 1

    etc

    But then it would of course string all these commands together and go straight to State H.

    So I made a second transparent button, which when clicked increments the numb_var and then hides itself.  So then the user next clicks the red button underneath, which will go to the next state based on the numb_var and then shows the transparent button again. So the user is clicking back and forth b/w the transparent button and the red button underneath it.

    But then there was a lag between the number and the State change, so when I wanted to have a submit button with a check or an X, that didn’t work.  So THEN I added the letter_var to the transparent button - which assignes the letter as a value, and I used this letter _var for the submit button, to show or hide checks and X’s.  Oh my, what a headace, but at least it works.

    However, I’m stuck with a double-click button, and I know here’s a much easier way.  I’m still just a few weeks into learning Captivate, and any suggestions would be much appreciated.

    - Bill