Very Thanks Toan.
I will buy 4 licenses of the software.
Two questions:
this sample project will work also when I use a pool with 6 questions? (not 8 questions as your sample)
I need another sample where I have a video and there will be 4 steps of quiz during the video (1 random question from a pool of 4).
And so if the video is long 5 minutes, the random question must to appear, for example:
1st step - 02:00 min - 1st random question from pool 1
2nd step - 03:00 min - 2nd random question from pool 2
3rd step - 04:00 min - 3rd random question from pool 3
4th step - 05:00 min - 4th random question from pool 4
Naturally if the user gives the wrong answer, he must return to the previous step.
Please can you provide me another sample for this?
Yes, you just need to update the script in the first slide On Load event:
// recreate random slides
// 2 random slides in a pool of 6 slides, the pool starts from slide 5
prez.myInitRandomSlides(2, 6, 5);
Please note that my sample is just a workaround with many limitations, such as:
Score in percentage will not work correctly because the total maximum score will take all questions from the pool into account.
Users can click on the player progress bar to jump to a slide in the pool. You should disable navigation in Player Settings > General tab to prevent it.
We’ll consider adding an option to recreate a new random set of slides (or something like that) if there are many requests from users.
Do you want to show questions over the video, or questions and video are in different slides?
Consider i will set up the score in points, and so, when a user gain 2 points, the quiz ends.
I have already disabled the player progress.
Can I also hide the current-slide/total slide on the bar?
I need that when the questions appears, the video must to stop, and if the user gives the wrong answer, he must return to the previous step.
And so they could appear over the video.
Insert slide questions, set their max attempts to Infinite.
Copy the questions and question titles (without slides) and paste into the video slide.
Rename the questions and question titles (e.g. Q1_P1 for question 1 in pool1)
Set them initial hidden.
Update names of questions, question titles, section times, question random time ranges… in Project > Properties > Event.
You can add as many sections and questions as you want.
You an update the script in Project Event as follows:
// search for this line
this.object(this.myShowingQuestion.question).show();
// and change it to
this.object(this.myShowingQuestion.question).show().clear();
Hi @ToanLS ,
if in a question I would to insert an image (as title of the question or as option of answer).
how could I proceed, without create a new layer?
Add script to show/hide images in myShowQuestion function
prez.myShowQuestion = function(show) {
if (!this.myShowingQuestion)
return;
var images = this.myShowingQuestion.images;
if (images) {
for (var i = 0; i < images.length; ++i) {
var imageObject = this.object(images[i]);
if (show)
imageObject.show();
else
imageObject.hide();
}
}
//..... (original code from if (show) {
};
Dear @ToanLS,
I bought 3 licenses of the software.
Now, the script works fine.
The only problem is:
(example)
If I set a range for the a poll of questions from 0.10 to 0.15 sec
and I don’t pause or restart the video before this range, all works good.
But if I pause the video before the range or restart the video, the range pool appears before.
Can you please let me know your order reference number or the email your placed the order?
My script use setTimeout function for showing the question randomly so it’ll not work correctly if you pause or seek (e.g. restart, go to another slide) the presentation.