Discussion Forums  >  Uncategorized

Replies: 2    Views: 239

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
05/26/11 08:13 PM (14 years ago)

Quiz points (iOS)

Is it possible to give just 1 point per correctly answered question, without any of the bonus points that you currently get when you answer several questions correctly in a row. I need people to pass the quiz only if they get at least 15 out of 20 right. Thanks iOS, buzztouch 1.5
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/26/11 09:31 PM (14 years ago)
Ah..I get what you mean. Not from the control panel. However, super easy adjustment to not allow 2x 3x 4x etc a) Open BT_Screens > BT_screen_quiz.m b) Starting on about line 1012 and continuing through about line 1037 you'll see the logic about the bonus. This section of code does two things. First, it sets the 2x, 3x image. It also multiplies the pointsPerRight value * the number of correct answers in a row. To ignore this calculation, scroll down a bit further to about 1044 and look for: totalPoints = (totalPoints + pointsPerRight); Change this this to totalPoints = (totalPoints + quizPointsPerAnswer); c) Recompile. This will affect all the quizzes in the app.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
05/27/11 04:28 AM (14 years ago)
perfect, thanks! Is there a way to empty out the scoreboard when I'm ready to get this quiz launched?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.