Advertisement
DMS1694

Untitled

Feb 3rd, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.95 KB | None | 0 0
  1. Information about object: The_Wheel
  2.  
  3. Sprite: wheel
  4. Solid: false
  5. Visible: true
  6. Depth: 0
  7. Persistent: false
  8. Parent: <no parent>
  9. Mask: <same as sprite>
  10.  
  11. Create Event:
  12. execute code:
  13.  
  14. image_speed=0
  15. image_index=0
  16.  
  17.  
  18. set variable can_click to true
  19. set variable spinner to 0
  20. set variable level to 1
  21.  
  22. Alarm Event for alarm 0:
  23. set variable can_click to true
  24.  
  25. Step Event:
  26. COMMENT: 1
  27. if spinner is equal to 1.1
  28. set variable global.impact_money relative to irandom_range(1,12)
  29. set variable global.plus to true
  30. set variable spinner to 0
  31. if spinner is equal to 1.2
  32. set variable global.impact_money relative to irandom_range(0,11) - 12
  33. set variable global.plus to false
  34. set variable spinner to 0
  35. if spinner is equal to 1.3
  36. set variable level to 2
  37. set variable can_click to false
  38. set Alarm 0 to 8
  39. create instance of object LVup at position (250,250)
  40. execute code:
  41.  
  42. image_index+=1
  43.  
  44. set variable spinner to 0
  45. COMMENT: 2
  46. if spinner is equal to 2.1
  47. set variable global.impact_money relative to irandom_range(3,24)
  48. set variable global.plus to true
  49. set variable spinner to 0
  50. if spinner is equal to 2.2
  51. set variable global.impact_money relative to irandom_range(1,22) - 25
  52. set variable global.plus to false
  53. set variable spinner to 0
  54. if spinner is equal to 2.3
  55. set variable level to 3
  56. set variable can_click to false
  57. set Alarm 0 to 4
  58. create instance of object LVup at position (250,250)
  59. execute code:
  60.  
  61. image_index+=1
  62.  
  63. set variable spinner to 0
  64. COMMENT: 3
  65. if spinner is equal to 3.1
  66. set variable global.impact_money relative to irandom_range(3,25)
  67. set variable global.plus to true
  68. set variable spinner to 0
  69. if spinner is equal to 3.2
  70. set variable global.impact_money relative to irandom_range(0,22) - 25
  71. set variable global.plus to false
  72. set variable spinner to 0
  73. if spinner is equal to 3.3
  74. set variable level to 4
  75. set variable can_click to false
  76. execute code:
  77.  
  78. image_index+=1
  79.  
  80. create instance of object LVup at position (250,250)
  81. set Alarm 0 to 4
  82. set variable spinner to 0
  83. if spinner is equal to 3.4
  84. create instance of object Gameover at position (250,250)
  85. set variable spinner to 0
  86. COMMENT: 4
  87. if spinner is equal to 4.1
  88. set variable global.impact_money relative to irandom_range(5,28)
  89. set variable global.plus to true
  90. set variable spinner to 0
  91. if spinner is equal to 4.11
  92. set variable global.impact_money relative to irandom_range(5,25) * 2
  93. set variable global.plus to true
  94. set variable spinner to 0
  95. if spinner is equal to 4.2
  96. set variable global.impact_money relative to irandom_range(0,23) - 28
  97. set variable global.plus to false
  98. set variable spinner to 0
  99. if spinner is equal to 4.3
  100. set variable level to 5
  101. set variable can_click to false
  102. set Alarm 0 to 8
  103. create instance of object LVup at position (250,250)
  104. execute code:
  105.  
  106. image_index+=1
  107.  
  108. set variable spinner to 0
  109. if spinner is equal to 4.4
  110. create instance of object Gameover at position (250,250)
  111. set variable spinner to 0
  112. COMMENT: 5
  113. if spinner is equal to 5.1
  114. set variable global.impact_money relative to irandom_range(9,37)
  115. set variable global.plus to true
  116. set variable spinner to 0
  117. if spinner is equal to 5.11
  118. set variable global.impact_money relative to irandom_range(9,30) * 2
  119. set variable global.plus to true
  120. set variable spinner to 0
  121. if spinner is equal to 5.2
  122. set variable global.impact_money relative to irandom_range(0,28) - 37
  123. set variable global.plus to false
  124. set variable spinner to 0
  125. if spinner is equal to 5.22
  126. set variable global.impact_money relative to irandom_range(0,28) -74
  127. set variable global.plus to false
  128. set variable spinner to 0
  129. if spinner is equal to 5.3
  130. set variable level to 6
  131. set variable can_click to false
  132. set Alarm 0 to 4
  133. create instance of object LVup at position (250,250)
  134. execute code:
  135.  
  136. image_index+=1
  137.  
  138. set variable spinner to 0
  139. if spinner is equal to 5.4
  140. create instance of object Gameover at position (250,250)
  141. set variable spinner to 0
  142. if spinner is equal to 5.5
  143. create instance of object prize at position (250,250)
  144. set variable spinner to 0
  145. COMMENT: 6
  146. if spinner is equal to 6.1
  147. set variable global.impact_money relative to irandom_range(10,45)
  148. set variable global.plus to true
  149. set variable spinner to 0
  150. if spinner is equal to 6.11
  151. set variable global.impact_money relative to irandom_range(10,45) * 2
  152. set variable global.plus to true
  153. set variable spinner to 0
  154. if spinner is equal to 6.2
  155. set variable global.impact_money relative to irandom_range(0,35) - 45
  156. set variable global.plus to false
  157. set variable spinner to 0
  158. if spinner is equal to 6.22
  159. set variable global.impact_money relative to irandom_range(0,35) - 80
  160. set variable global.plus to false
  161. set variable spinner to 0
  162. if spinner is equal to 6.3
  163. set variable level to 7
  164. set variable can_click to false
  165. set Alarm 0 to 4
  166. execute code:
  167.  
  168. image_index+=1
  169.  
  170. set variable spinner to 0
  171. if spinner is equal to 6.4
  172. create instance of object Gameover at position (250,250)
  173. set variable spinner to 0
  174. if spinner is equal to 6.5
  175. create instance of object prize at position (250,250)
  176. set variable spinner to 0
  177. COMMENT: 7
  178. if spinner is equal to 2.1
  179. set variable global.impact_money relative to 0
  180. set variable global.plus to true
  181. set variable spinner to 0
  182. if spinner is equal to 2.2
  183. set variable global.impact_money relative to 0
  184. set variable global.plus to false
  185. set variable spinner to 0
  186. if spinner is equal to 2.3
  187. set variable level to 3
  188. set variable can_click to false
  189. set Alarm 0 to 25
  190. execute code:
  191.  
  192. image_index+=1
  193.  
  194. set variable spinner to 0
  195. if spinner is equal to 2.1
  196. set variable global.impact_money relative to 0
  197. set variable global.plus to true
  198. set variable spinner to 0
  199. if spinner is equal to 2.2
  200. set variable global.impact_money relative to 0
  201. set variable global.plus to false
  202. set variable spinner to 0
  203. if spinner is equal to 2.3
  204. set variable level to 3
  205. set variable can_click to false
  206. set Alarm 0 to 25
  207. execute code:
  208.  
  209. image_index+=1
  210.  
  211. set variable spinner to 0
  212. if spinner is equal to 2.1
  213. set variable global.impact_money relative to 0
  214. set variable global.plus to true
  215. set variable spinner to 0
  216. if spinner is equal to 2.2
  217. set variable global.impact_money relative to 0
  218. set variable global.plus to false
  219. set variable spinner to 0
  220. if spinner is equal to 2.3
  221. set variable level to 3
  222. set variable can_click to false
  223. set Alarm 0 to 25
  224. execute code:
  225.  
  226. image_index+=1
  227.  
  228. set variable spinner to 0
  229.  
  230. Begin Step Event:
  231. if global.impact_money is larger than 0
  232. set variable global.money relative to global.impact_money
  233. set variable global.impact_money to 0
  234. if global.impact_money is smaller than 0
  235. set variable global.money relative to global.impact_money
  236. set variable global.impact_money to 0
  237.  
  238. End Step Event:
  239. if global.money is not larger than 0
  240. create instance of object Gameover at position (250,250)
  241. set variable spinner to 0
  242.  
  243. Keyboard Event for R-key Key:
  244. set variable global.money to 25
  245. restart the game
  246.  
  247. Mouse Event for Glob Left Released:
  248. if level is equal to 1
  249. if can_click is equal to true
  250. set variable spinner to choose(1.1,1.1,1.2,1.1,1.1,1.2,1.2,1.2,1.3,1.3,1.3)
  251. set variable can_click to false
  252. set Alarm 0 to 4
  253. if level is equal to 2
  254. if can_click is equal to true
  255. set variable spinner to choose(2.1,2.1,2.1,2.2,2.2,2.2,2.3,2.3,2.3,2.3)
  256. set variable can_click to false
  257. set Alarm 0 to 4
  258. if level is equal to 3
  259. if can_click is equal to true
  260. set variable spinner to choose(3.1,3.1,3.2,3.1,3.1,3.2,3.2,3.2,3.3,3.3,3.3,3.4)
  261. set variable can_click to false
  262. set Alarm 0 to 4
  263. if level is equal to 4
  264. if can_click is equal to true
  265. set variable spinner to choose(4.1,4.11,4.1,4.1,4.2,4.2,4.2,4.2,4.3,4.3,4.3,4,4)
  266. set variable can_click to false
  267. set Alarm 0 to 4
  268. if level is equal to 5
  269. if can_click is equal to true
  270. set variable spinner to choose(5.1,5.1,5.1,5.2,5.2,5.2,5.3,5.3,5.4,5.5)
  271. set variable can_click to false
  272. set Alarm 0 to 4
  273. if level is equal to 6
  274. if can_click is equal to true
  275. set variable spinner to choose(6.1,6.11,6.11,6.2,6.22,6.3,6.3,6.4,6.4,6.5)
  276. set variable can_click to false
  277. set Alarm 0 to 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement