Hello, I want to use the wheel spin game, but I need the circle with 7-8-9-10 points, how can I increase its number?
1 Like
Hi,
To increase these points, you can follow the steps below:
- Recreate the circle with your desired number of points.
- Increase the number of questions in the Slide Pool (View > Slide Pools) corresponding to the number in the circle.
- Edit the script code in the On Correct event. For example, if it has 8 points:
var rotateWheel = prez.object('WHEEL').rotate();
var totalScore = prez.variable('total');
//set varaible 'location' value of wheel
prez.variable('location', rotateWheel);
//get score of wheel
var score1 = prez.object('score_1').text();
var score2 = prez.object('score_2').text();
var score3 = prez.object('score_3').text();
var score4 = prez.object('score_4').text();
var score5 = prez.object('score_5').text();
var score6 = prez.object('score_6').text();
var score7 = prez.object('score_7').text();
var score8 = prez.object('score_8').text();
if (rotateWheel > 0){
if(rotateWheel >= 0 && rotateWheel <= 45) {
showScore (totalScore, Number(score8));
return false;
}
if(rotateWheel >= 46 && rotateWheel <= 90) {
showScore (totalScore, Number(score7));
return false;
}
if(rotateWheel >= 91 && rotateWheel <= 135) {
showScore (totalScore, Number(score6));
return false;
}
if(rotateWheel >= 136 && rotateWheel <= 180) {
showScore (totalScore, Number(score5));
return false;
}
}
else{
if(rotateWheel <= 0 && rotateWheel >= -45) {
showScore (totalScore, Number(score1));
return false;
}
if(rotateWheel <= -46 && rotateWheel >= -90) {
showScore (totalScore, Number(score2));
return false;
}
if(rotateWheel <= -91 && rotateWheel >= -135) {
showScore (totalScore, Number(score3));
return false;
}
if(rotateWheel <= -136 && rotateWheel >= -179) {
showScore (totalScore, Number(score4));
return false;
}
}
function showScore (totalScore, x){
totalScore = totalScore + x;
prez.variable ('total', totalScore,);
}
2 Likes