Advertisement
Guest User

Untitled

a guest
Aug 12th, 2016
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Create Event:
  2.  
  3. execute code:
  4.  
  5. q_randomizer = 0;
  6.  
  7. //List of questions
  8. q1 = "question 1"
  9. q2 = "question 2"
  10. q3 = "question 3"
  11. q4 = "question 4"
  12. q5 = "question 5"
  13. q6 = "question 6"
  14.  
  15.  
  16. Alarm Event for alarm 0:
  17.  
  18. execute code:
  19.  
  20. q_randomizer = irandom(6);
  21.  
  22. Draw Event:
  23.  
  24. execute code:
  25.  
  26. if (q_randomizer = 1) {
  27. draw_text(x,y,q1)
  28. } else
  29. if (q_randomizer = 2) {
  30. draw_text(x,y,q2)
  31. } else
  32. if (q_randomizer = 3) {
  33. draw_text(x,y,q3)
  34. } else
  35. if (q_randomizer = 4) {
  36. draw_text(x,y,q4)
  37. } else
  38. if (q_randomizer = 5) {
  39. draw_text(x,y,q5)
  40. } else
  41. if (q_randomizer = 6) {
  42. draw_text(x,y,q6)
  43. }
  44.  
  45. Key Press Event for Key:
  46.  
  47. execute code:
  48.  
  49. //"Question being answered" simulation
  50. //Insert if statements about right or wrong answers in the final version
  51.  
  52. //Set alarm that randomizes
  53. alarm[0] = 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement