Forum Discussion

CasperLippens's avatar
CasperLippens
Community Member
6 hours ago
Solved

Separating returned textstrings/variables

Hi All, I'm stuck and can't figure out how (if at all) I am going to solve this :S So, let me paint the situation: The user is presented with a multiple choice/choose many question with 10 optio...
  • CasperLippens's avatar
    1 hour ago

    I think I have it working :O
    Perhaps in the strangest way you can think of but still; it's working.
    I'll share it here:

    Initial setup is still the same as in the OP.

    On slide 2 (after the learner submits his/her answers and has to elaborate on them), each reference/variable is in its' own textbox. They all overlap at the top position (where the first answer has to be displayed).
    All ar set to be hidden and have a background color (but with 100% transparency (so not visible)).

    Now we get into the technical part: first there are 10 slide trigger (1 for each "answer").
    The trigger does nothing more then change the state of the box to normal when the variable that is inside it, is not blank. So basically:

    Set state of BOX1 to  normal 
    when the timeline starts on this slide 
    if ANSWER1 is not blank.



    Then there are 9 object triggers; 1 for every box EXCEPT for the first one (because that is in the correct place by default).
    The trigger is a mover when intersect trigger.
    Let's use BOX2 as an example:

    Move BOX2 along "line motion path 2"
    when BOX2 intersects with 
    BOX1.

    For BOX3, the intersect is either BOX1 or BOX2 (and the motion path will obviously also change).
    For all the other ones, keep adding the previous boxes (intersect with any of the following objects... And the motion path is unique for each one).

    Make the motion path start and end at the same point (you can use X an Y coordinates), Length will be '0' if you've done it correctly and just to be sure; set the speed to 00.10 (this will make it so it does not "animate" but rather "jump" into position).

    And there you have it. Everything is working the way it should be (or at least as  far as I can figure it out).