Forum Discussion
Separating returned textstrings/variables
- 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).
Creating separate textboxes for each reference partially solves the problem; the answers are then in their own boxes, however each textbox is there where the fields is placed on the stage/slide.
So (for instance) answer 1 and 2 will be at the top without space in between. Any other consecutive answers will have that problem (just not residing at the top), whereas 1 and 10 will be max space out, with 10 not having any space available underneath it (10 being the last one and thus at the bottom of the list of boxes/fields).
Overlaying them works except the chosen answers are then just "sitting" on top of each other, which is not contributing to the readability ;)
Related Content
- 6 months ago