vindaca510

V's CATS v2.7 (Help Guide)

Oct 19th, 2013
2,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 47.62 KB | None | 0 0
  1. #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
  2. #                                                                              #
  3. #                        V's Custom Animated Title Scene                       #
  4. #                                     v2.7                                     #
  5. #                                  Help Guide                                  #
  6. #                                                                              #
  7. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  8. #                                Written By:  V                                #
  9. #                        Last Edited:  November 1, 2013                        #
  10. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  11. #                                                                              #
  12. #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
  13.  
  14.  
  15. ################################################################################
  16. #==============================================================================#
  17. #                                                                              #
  18. #   ** Layer Animation Types                                                   #
  19. #                                                                              #
  20. #------------------------------------------------------------------------------#
  21. #   * These are the id's and symbols required for the animations.              #
  22. #                                                                              #
  23. #   * These are optional symbols that are set to default if not used:          #
  24. #     :angle                                                                   #
  25. #     :blend ( You can only use 1 ,2, 3, for this option. )                    #
  26. #     :fade_max_opacity ( Usable with both regular and initializing methods. ) #
  27. #     :fade_min_opacity ( Usable with the regular animation methods. )         #
  28. #                                                                              #
  29. #==============================================================================#
  30. ################################################################################
  31.  
  32.  
  33. #------------------------------------------------------------------------------#
  34. #                                                                              #
  35. #   ** Still                                                                   #
  36. #                                                                              #
  37. #------------------------------------------------------------------------------#
  38. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  39. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  40. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  41. #   0 ~ A still image. Can be used for a background or a base layer.           #
  42. #                                                                              #
  43. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#                         #
  44. #   # This animations do not need any symbols to use #                         #
  45. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#                         #
  46. #                                                                              #
  47. #------------------------------------------------------------------------------#
  48. #                                                                              #
  49. #     Example~                                                                 #
  50. #                                                                              #
  51. #     "Image Name" => { :x => 0,                                               #
  52. #                       :y => 0,                                               #
  53. #                       :ox => 0,                                              #
  54. #                       :oy => 0,                                              #
  55. #                       :z => 1,                                               #
  56. #                       :opacity => 255,                                       #
  57. #                       :animation_types => [0]             },                 #
  58. #                                                                              #
  59. #------------------------------------------------------------------------------#
  60.  
  61. #------------------------------------------------------------------------------#
  62. #                                                                              #
  63. #   ** Rotating                                                                #
  64. #                                                                              #
  65. #------------------------------------------------------------------------------#
  66. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  67. #   # The animations ID's. (Used in the  ":animations_types" array.) #         #
  68. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  69. #   1 ~ Spins layer graphic clockwise                                          #
  70. #   2 ~ Spins layer graphic counter clockwise                                  #
  71. #                                                                              #
  72. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  73. #   # The layer hash with this animation must contain these symbols: #         #
  74. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  75. #   :rotation_frame_rate                                                       #
  76. #   :rotation_speed                                                            #
  77. #                                                                              #
  78. #------------------------------------------------------------------------------#
  79. #                                                                              #
  80. #     Additional Notes~                                                        #
  81. #                                                                              #
  82. #   * These images ox and oy values do not need to be half of the size         #
  83. #     of the image, unless you want it to spin normally.                       #
  84. #                                                                              #
  85. #------------------------------------------------------------------------------#
  86. #                                                                              #
  87. #     Example~                                                                 #
  88. #                                                                              #
  89. #     "Image Name" => { :rotation_frame_rate => 1,                             #
  90. #                       :rotation_speed => 1,                                  #
  91. #                       :x => 0,                                               #
  92. #                       :y => 0,                                               #
  93. #                       :ox => 150,  (center for a 300x300 pixel image)        #
  94. #                       :oy => 150,  (you DO NOT have to center the image)     #
  95. #                       :z => 2,                                               #
  96. #                       :opacity => 255,                                       #
  97. #                       :animation_types => [1]             },                 #
  98. #                                                                              #
  99. #------------------------------------------------------------------------------#
  100.  
  101. #------------------------------------------------------------------------------#
  102. #                                                                              #
  103. #   ** Looping                                                                 #
  104. #                                                                              #
  105. #------------------------------------------------------------------------------#
  106. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  107. #   # The animations ID's. (Used in the  ":animations_types" array.) #         #
  108. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  109. #   3 ~ moves layer graphic right in a looping method                          #
  110. #   4 ~ moves layer graphic left in a looping method                           #
  111. #   5 ~ moves layer graphic down in a looping method                           #
  112. #   6 ~ moves layer graphic up in a looping method                             #
  113. #                                                                              #
  114. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  115. #   # The layer hash with this animation must contain these symbols: #         #
  116. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  117. #   :scroll_frame_rate                                                         #
  118. #   :scroll_speed                                                              #
  119. #                                                                              #
  120. #------------------------------------------------------------------------------#
  121. #                                                                              #
  122. #     Additional Notes~                                                        #
  123. #                                                                              #
  124. #   * TWO LAYERS ARE NEEDED FOR THIS PROCESS.                                  #
  125. #     They can be the same image but they must have different names.           #
  126. #                                                                              #
  127. #   * The scroll speed must be set to 1, 2, 4, 8, 16, 32... and so on.         #
  128. #                                                                              #
  129. #   * They can be the same image but they must have different names.           #
  130. #                                                                              #
  131. #------------------------------------------------------------------------------#
  132. #                                                                              #
  133. #     Example~                                                                 #
  134. #                                                                              #
  135. #     "Image Name" => { :scroll_frame_rate => 1,                               #
  136. #                       :scroll_speed => 1,                                    #
  137. #                       :x => 0,                                               #
  138. #                       :y => 0,                                               #
  139. #                       :ox => 0,                                              #
  140. #                       :oy => 0,                                              #
  141. #                       :z => 2,                                               #
  142. #                       :opacity => 255,                                       #
  143. #                       :animation_types => [3]             },                 #
  144. #                                                                              #
  145. #     "Image Name2" => { :scroll_frame_rate => 1,                              #
  146. #                       :scroll_speed => 1,                                    #
  147. #                       :x => -544,                                            #
  148. #                       :y => 0,                                               #
  149. #                       :ox => 0,                                              #
  150. #                       :oy => 0,                                              #
  151. #                       :z => 2,                                               #
  152. #                       :opacity => 255,                                       #
  153. #                       :animation_types => [3]             },                 #
  154. #                                                                              #
  155. #------------------------------------------------------------------------------#
  156.  
  157. #------------------------------------------------------------------------------#
  158. #                                                                              #
  159. #   ** Fade                                                                    #
  160. #                                                                              #
  161. #------------------------------------------------------------------------------#
  162. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  163. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  164. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  165. #   7 ~ Fades layer graphic opacity in and out                                 #
  166. #                                                                              #
  167. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  168. #   # The layer hash with this animation must contain these symbols: #         #
  169. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  170. #   :fade_frame_rate                                                           #
  171. #   :fade_speed                                                                #
  172. #                                                                              #
  173. #------------------------------------------------------------------------------#
  174. #                                                                              #
  175. #     Additional Notes~                                                        #
  176. #                                                                              #
  177. #   * Fade Out can be found below the Cursor animation type info.              #
  178. #                                                                              #
  179. #------------------------------------------------------------------------------#
  180. #                                                                              #
  181. #     Example~                                                                 #
  182. #                                                                              #
  183. #     "Image Name" => { :fade_frame_rate => 1,                                 #
  184. #                       :fade_speed => 1,                                      #
  185. #                       :x => 0,                                               #
  186. #                       :y => 0,                                               #
  187. #                       :ox => 0,                                              #
  188. #                       :oy => 0,                                              #
  189. #                       :z => 2,                                               #
  190. #                       :opacity => 255,                                       #
  191. #                       :animation_types => [7]             },                 #
  192. #                                                                              #
  193. #------------------------------------------------------------------------------#
  194. #                                                                              #
  195. #     Example~                                                                 #
  196. #                                                                              #
  197. #     "Image Name" => { :fade_min_opacity => 150,                              #
  198. #                       :fade_max_opacity => 200,                              #
  199. #                       :fade_frame_rate => 1,                                 #
  200. #                       :fade_speed => 1,                                      #
  201. #                       :x => 0,                                               #
  202. #                       :y => 0,                                               #
  203. #                       :ox => 0,                                              #
  204. #                       :oy => 0,                                              #
  205. #                       :z => 2,                                               #
  206. #                       :opacity => 255,                                       #
  207. #                       :animation_types => [7]             },                 #
  208. #                                                                              #
  209. #------------------------------------------------------------------------------#
  210.  
  211. #------------------------------------------------------------------------------#
  212. #                                                                              #
  213. #   ** Time                                                                    #
  214. #                                                                              #
  215. #------------------------------------------------------------------------------#
  216. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  217. #   # The animations ID's. (Used in the  ":animations_types" array.) #         #
  218. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  219. #   8 ~ rotates layer graphic according to system hour                         #
  220. #   9 ~ rotates layer graphic according to system minute                       #
  221. #                                                                              #
  222. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#                        #
  223. #   # These animations do not need any symbols to use #                        #
  224. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#                        #
  225. #                                                                              #
  226. #------------------------------------------------------------------------------#
  227. #                                                                              #
  228. #     Additional Notes~                                                        #
  229. #                                                                              #
  230. #   * Three layers are used but not all are needed for this process.           #
  231. #                                                                              #
  232. #   * Make sure to set the ox and oy to half of the images size for both       #
  233. #     the clocks hands.                                                        #
  234. #                                                                              #
  235. #   * Make sure to set each of the layers to a seperate z value.               #
  236. #                                                                              #
  237. #------------------------------------------------------------------------------#
  238. #                                                                              #
  239. #     Example~                                                                 #
  240. #                                                                              #
  241. #     (Backgound image of clock animation)                                     #
  242. #     "Image Name" => { :x => 0,                                               #
  243. #                       :y => 0,                                               #
  244. #                       :ox => 0,                                              #
  245. #                       :oy => 0,                                              #
  246. #                       :z => 2,                                               #
  247. #                       :opacity => 255,                                       #
  248. #                       :animation_types => [0]             },                 #
  249. #                                                                              #
  250. #     (Image of clocks hour hand)                                              #
  251. #     "Image Name" => { :x => 0,                                               #
  252. #                       :y => 0,                                               #
  253. #                       :ox => 75,                                             #
  254. #                       :oy => 75,                                             #
  255. #                       :z => 3,                                               #
  256. #                       :opacity => 255,                                       #
  257. #                       :animation_types => [8]             },                 #
  258. #                                                                              #
  259. #     (Image of clocks minute hand)                                            #
  260. #     "Image Name" => { :x => 0,                                               #
  261. #                       :y => 0,                                               #
  262. #                       :ox => 75,                                             #
  263. #                       :oy => 75,                                             #
  264. #                       :z => 4,                                               #
  265. #                       :opacity => 255,                                       #
  266. #                       :animation_types => [9]             },                 #
  267. #                                                                              #
  268. #------------------------------------------------------------------------------#
  269.  
  270. #------------------------------------------------------------------------------#
  271. #                                                                              #
  272. #   ** Wave                                                                    #
  273. #                                                                              #
  274. #------------------------------------------------------------------------------#
  275. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  276. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  277. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  278. #   10 ~ Makes the image move like a wave.                                     #
  279. #                                                                              #
  280. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  281. #   # The layer hash with this animation must contain these symbols: #         #
  282. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  283. #   :wave_frame_rate                                                           #
  284. #   :wave_speed                                                                #
  285. #   :wave_strength                                                             #
  286. #                                                                              #
  287. #------------------------------------------------------------------------------#
  288. #                                                                              #
  289. #     Example~                                                                 #
  290. #                                                                              #
  291. #     "Image Name" => { :wave_frame_rate => 1,                                 #
  292. #                       :wave_speed => 5,                                      #
  293. #                       :wave_strength => 10,                                  #
  294. #                       :x => 0,                                               #
  295. #                       :y => 0,                                               #
  296. #                       :ox => 0,                                              #
  297. #                       :oy => 0,                                              #
  298. #                       :z => 2,                                               #
  299. #                       :opacity => 255,                                       #
  300. #                       :animation_types => [12]             },                #
  301. #                                                                              #
  302. #------------------------------------------------------------------------------#
  303.  
  304. #------------------------------------------------------------------------------#
  305. #                                                                              #
  306. #   ** Blend                                                                   #
  307. #                                                                              #
  308. #------------------------------------------------------------------------------#
  309. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  310. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  311. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  312. #   11 ~ Makes the image flash.                                                #
  313. #                                                                              #
  314. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  315. #   # The layer hash with this animation must contain these symbols: #         #
  316. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  317. #   :blend_frame_rate                                                          #
  318. #                                                                              #
  319. #------------------------------------------------------------------------------#
  320. #                                                                              #
  321. #     Example~                                                                 #
  322. #                                                                              #
  323. #     "Image Name" => { :blend_frame_rate => 1,                                #
  324. #                       :x => 0,                                               #
  325. #                       :y => 0,                                               #
  326. #                       :ox => 0,                                              #
  327. #                       :oy => 0,                                              #
  328. #                       :z => 2,                                               #
  329. #                       :opacity => 255,                                       #
  330. #                       :animation_types => [11]             },                #
  331. #                                                                              #
  332. #------------------------------------------------------------------------------#
  333.  
  334.  
  335. #------------------------------------------------------------------------------#
  336. #                                                                              #
  337. #   ** Variable                                                                #
  338. #                                                                              #
  339. #------------------------------------------------------------------------------#
  340. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  341. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  342. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  343. #   12 ~ Allows you to have a frame animation set-up.                          #
  344. #                                                                              #
  345. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  346. #   # The layer hash with this animation must contain these symbols: #         #
  347. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  348. #   :variable_frame_rate                                                       #
  349. #   :max_variable_frames                                                       #
  350. #                                                                              #
  351. #------------------------------------------------------------------------------#
  352. #                                                                              #
  353. #     Additional Notes~                                                        #
  354. #                                                                              #
  355. #   * Each frame must be name according to the layer name and index.           #
  356. #     for example Image_0, Image_1, Image_2... and so on.                      #
  357. #                                                                              #
  358. #   * The name of the layer MUST NOT include the animations index.             #
  359. #                                                                              #
  360. #------------------------------------------------------------------------------#
  361. #                                                                              #
  362. #     Example~                                                                 #
  363. #                                                                              #
  364. #     ** DO NOT include the number this script only needs the name.            #
  365. #                                                                              #
  366. #     "Image Name" => { :variable_frame_rate => 1,                             #
  367. #                       :max_variable_frames => 5,                             #
  368. #                       :x => 0,                                               #
  369. #                       :y => 0,                                               #
  370. #                       :ox => 0,                                              #
  371. #                       :oy => 0,                                              #
  372. #                       :z => 2,                                               #
  373. #                       :opacity => 255,                                       #
  374. #                       :animation_types => [12]             },                #
  375. #                                                                              #
  376. #------------------------------------------------------------------------------#
  377.  
  378. #------------------------------------------------------------------------------#
  379. #                                                                              #
  380. #   ** Cursor                                                                  #
  381. #                                                                              #
  382. #------------------------------------------------------------------------------#
  383. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  384. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  385. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  386. #   13 ~ Sets the x or y values according to the cursor index.                 #
  387. #                                                                              #
  388. #------------------------------------------------------------------------------#
  389. #                                                                              #
  390. #     Additional Notes~                                                        #
  391. #                                                                              #
  392. #   * Whenever you are using this animation the x and y values will be set     #
  393. #     automatically according to the x and y values of the command window.     #
  394. #                                                                              #
  395. #------------------------------------------------------------------------------#
  396. #                                                                              #
  397. #     Example~                                                                 #
  398. #                                                                              #
  399. #     "Image Name" => { :ox => 0,                                              #
  400. #                       :oy => 0,                                              #
  401. #                       :z => 2,                                               #
  402. #                       :opacity => 255,                                       #
  403. #                       :animation_types => [0, 13]          },                #
  404. #                                                                              #
  405. #------------------------------------------------------------------------------#
  406.  
  407. #------------------------------------------------------------------------------#
  408. #                                                                              #
  409. #   ** Fade Out                                                                #
  410. #                                                                              #
  411. #------------------------------------------------------------------------------#
  412. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  413. #   # The animations ID. (Used in the  ":animations_types" array.) #           #
  414. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#           #
  415. #   14 ~ Allows you to fade out the layer when a set time is reached.          #
  416. #                                                                              #
  417. #------------------------------------------------------------------------------#
  418. #                                                                              #
  419. #     Example~                                                                 #
  420. #                                                                              #
  421. #     "Image Name" => { :fade_out_frame_rate => 1,                             #
  422. #                       :fade_out_speed => 1,                                  #
  423. #                       :start_fade_out_ => 200,                               #
  424. #                       :x => 0,                                               #
  425. #                       :y => 0,                                               #
  426. #                       :ox => 0,                                              #
  427. #                       :oy => 0,                                              #
  428. #                       :z => 2,                                               #
  429. #                       :opacity => 255,                                       #
  430. #                       :animation_types => [0, 14]          },                #
  431. #                                                                              #
  432. #------------------------------------------------------------------------------#
  433.  
  434.  
  435.  
  436.  
  437. ################################################################################
  438. #==============================================================================#
  439. #                                                                              #
  440. #   ** Initializing Layer Animation Types                                      #
  441. #                                                                              #
  442. #------------------------------------------------------------------------------#
  443. #   * These are the id's and symbols required for the animations.              #
  444. #                                                                              #
  445. #   * The additional notes still apply from they're counter parts above.       #
  446. #                                                                              #
  447. #   * All initializing graphics must contain the symbols:                      #
  448. #     :initialize_time                                                         #
  449. #     :initialize_animations                                                   #
  450. #                                                                              #
  451. #==============================================================================#
  452. ################################################################################
  453.  
  454.  
  455. #------------------------------------------------------------------------------#
  456. #                                                                              #
  457. #   ** Rotating                                                                #
  458. #                                                                              #
  459. #------------------------------------------------------------------------------#
  460. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#    #
  461. #   # The animations ID's. (Used in the  ":initialize_animations" array.) #    #
  462. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#    #
  463. #   1 ~ Spins layer graphic clockwise                                          #
  464. #   2 ~ Spins layer graphic counter clockwise                                  #
  465. #                                                                              #
  466. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  467. #   # The layer hash with this animation must contain these symbols: #         #
  468. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  469. #   :angle                                                                     #
  470. #   :initialize_rotation_frame_rate                                            #
  471. #   :initialize_rotation_speed                                                 #
  472. #   :initialize_rotation_final_angle                                           #
  473. #                                                                              #
  474. #------------------------------------------------------------------------------#
  475. #                                                                              #
  476. #     Example~                                                                 #
  477. #                                                                              #
  478. #     "Image Name" => { :x => 0,                                               #
  479. #                       :y => 0,                                               #
  480. #                       :ox => 150,  (center for a 300x300 pixel image)        #
  481. #                       :oy => 150,  (you DO NOT have to center the image)     #
  482. #                       :angle => 1080,                                        #
  483. #                       :z => 2,                                               #
  484. #                       :opacity => 255,                                       #
  485. #                       :animation_types => [0],                               #
  486. #                       :initialize_time => 500,                               #
  487. #                       :initialize_animations => [1],                         #
  488. #                       :initialize_rotation_frame_rate => 1,                  #
  489. #                       :initialize_rotation_speed => 2,                       #
  490. #                       :initialize_rotation_final_angle => -1080,             #
  491. #                      },                                                      #
  492. #                                                                              #
  493. #------------------------------------------------------------------------------#
  494.  
  495. #------------------------------------------------------------------------------#
  496. #                                                                              #
  497. #   ** Move                                                                    #
  498. #                                                                              #
  499. #------------------------------------------------------------------------------#
  500. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#    #
  501. #   # The animations ID's. (Used in the  ":initialize_animations" array.) #    #
  502. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#    #
  503. #   3 ~ moves layer graphic right                                              #
  504. #   4 ~ moves layer graphic left                                               #
  505. #   5 ~ moves layer graphic down                                               #
  506. #   6 ~ moves layer graphic up                                                 #
  507. #                                                                              #
  508. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  509. #   # The layer hash with this animation must contain these symbols: #         #
  510. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  511. #   :initialize_move_frame_rate                                                #
  512. #   :initialize_move_speed                                                     #
  513. #   :initialize_move_final_x                                                   #
  514. #   :initialize_move_final_y                                                   #
  515. #                                                                              #
  516. #------------------------------------------------------------------------------#
  517. #                                                                              #
  518. #     Example~                                                                 #
  519. #                                                                              #
  520. #     "Image Name" => { :scroll_frame_rate => 1,                               #
  521. #                       :scroll_speed => 1,                                    #
  522. #                       :x => 0,                                               #
  523. #                       :y => 0,                                               #
  524. #                       :ox => 0,                                              #
  525. #                       :oy => 0,                                              #
  526. #                       :z => 2,                                               #
  527. #                       :opacity => 255,                                       #
  528. #                       :animation_types => [0],                               #
  529. #                       :initialize_time => 500,                               #
  530. #                       :initialize_animations => [5],                         #
  531. #                       :initialize_move_frame_rate => 1,                      #
  532. #                       :initialize_move_speed => 2,                           #
  533. #                       :initialize_move_final_x => 91,                        #
  534. #                      },                                                      #
  535. #                                                                              #
  536. #------------------------------------------------------------------------------#
  537.  
  538. #------------------------------------------------------------------------------#
  539. #                                                                              #
  540. #   ** Fade In                                                                 #
  541. #                                                                              #
  542. #------------------------------------------------------------------------------#
  543. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #
  544. #   # The animations ID. (Used in the  ":initialize_animations" array.) #      #
  545. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#      #
  546. #   7 ~ Fades layer graphic opacity in                                         #
  547. #                                                                              #
  548. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  549. #   # The layer hash with this animation must contain these symbols: #         #
  550. #   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#         #
  551. #   :initialize_fade_in_frame_rate                                             #
  552. #   :initialize_fade_in_speed                                                  #
  553. #                                                                              #
  554. #------------------------------------------------------------------------------#
  555. #                                                                              #
  556. #     Example~                                                                 #
  557. #                                                                              #
  558. #     "Image Name" => { :fade_frame_rate => 1,                                 #
  559. #                       :fade_speed => 1,                                      #
  560. #                       :x => 0,                                               #
  561. #                       :y => 0,                                               #
  562. #                       :ox => 0,                                              #
  563. #                       :oy => 0,                                              #
  564. #                       :z => 2,                                               #
  565. #                       :opacity => 0,                                         #
  566. #                       :animation_types => [0],                               #
  567. #                       :initialize_time => 500,                               #
  568. #                       :initialize_animations => [5],                         #
  569. #                       :initialize_fade_in_frame_rate => 1,                   #
  570. #                       :initialize_fade_in_speed => 2,                        #
  571. #                      },                                                      #
  572. #                                                                              #
  573. #------------------------------------------------------------------------------#
  574.  
  575.  
  576.  
  577.  
  578. ################################################################################
  579. #==============================================================================#
  580. #                                                                              #
  581. #   ** Examples of how to set up layers.                                       #
  582. #                                                                              #
  583. #==============================================================================#
  584. ################################################################################
  585.  
  586. #------------------------------------------------------------------------------#
  587. #                                                                              #
  588. #     Example 1~ This example shows how to draw cursor with animations.        #
  589. #                                                                              #
  590. #------------------------------------------------------------------------------#
  591. #                                                                              #
  592. #     "Image Name" => { :rotation_frame_rate => 1,                             #
  593. #                       :rotation_speed => 5,                                  #
  594. #                       :variable_frame_rate => 2,                             #
  595. #                       :max_variable_frames => 13,                            #
  596. #                       :ox => 75,                                             #
  597. #                       :oy => 75,                                             #
  598. #                       :z => 2,                                               #
  599. #                       :opacity => 255,                                       #
  600. #                       :animation_types => [2, 12, 13]      },                #
  601. #                                                                              #
  602. #------------------------------------------------------------------------------#
  603.  
  604. #------------------------------------------------------------------------------#
  605. #                                                                              #
  606. #     Example 2~ This example shows how to draw a rolling type  animation.     #
  607. #                                                                              #
  608. #------------------------------------------------------------------------------#
  609. #                                                                              #
  610. #     "Image Name" => { :rotation_frame_rate => 1,                             #
  611. #                       :rotation_speed => 5,                                  #
  612. #                       :scroll_frame_rate => 2,                               #
  613. #                       :scroll_speed => 5,                                    #
  614. #                       :x => 0,                                               #
  615. #                       :y => 0,                                               #
  616. #                       :ox => 75,                                             #
  617. #                       :oy => 75,                                             #
  618. #                       :z => 2,                                               #
  619. #                       :opacity => 255,                                       #
  620. #                       :animation_types => [2, 4]              },             #
  621. #                                                                              #
  622. #------------------------------------------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment