Advertisement
TroyZ

TroyZ - Random Title Transition

May 28th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.48 KB | None | 0 0
  1. # ==============================================================================
  2. # ▼▼▼▼▼▼                  TroyZ - Random Title Transition                 ▼▼▼▼▼▼
  3. # ==============================================================================
  4. # Script by : Agung Prasetyo(TroyZ)
  5. # Contact me by : - Email agung.endisnear.xyz@gmail.com
  6. #                 - Forum RPGMakerID, username TroyZ
  7. #                 - Handphone 085756289121
  8. # Engine : VXAce
  9. # Level : Easy
  10. # Version : 1.0
  11. # ------------------------------------------------------------------------------
  12. # License : Silahkan digunakan untuk game free ataupun yang komersil. Game
  13. # free ataupun komersil, saya hanya minta nama saya ada di credit. Credit atas
  14. # nama Agung Prasetyo(TroyZ).
  15. # ------------------------------------------------------------------------------
  16. # Dengan script ini, kamu bisa memasang transisi saat title screen muncul.
  17. # Transisi akan ditampilkan secara acak.
  18. ($imported ||= {})[:TroyZ_RandomTitleTransition] = true
  19. module X_Random_Title_Transition_X
  20.   Durasi_Transisi      = 120 # dalam frame. 60 frame = 1 detik
  21.   # Pasang file transisimu dibawah ini
  22.   Transisi             = ["5 Line", "Cool", "Crack", "Curve", "Diamond",
  23.                           "Flat Square", "Flat", "Fog", "Scattered", "Spark",
  24.                           "Spin", "Square", "Stars", "Strange", "Wall", "Whirl",
  25.                           "Whirl2", "Whirl3", "Whirl4", "Whirl5", "Whorl"]
  26.   # Set lokasi direktori file transisi dibawah ini
  27.   Lokasi_File_Transisi = "Graphics/Transition/"
  28.   # Set nilai ambiguitas antara gambar dengan pinggiran gambar dibawah ini.
  29.   # Semakin tinggi nilai ambiguitas, pinggiran gambar transisi akan semakin halus
  30.   # ditampilkan
  31.   Nilai_Ambiguitas     = 100
  32. end
  33. # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  34. # BATAS KONFIGURASI. DILARANG MELEWATI GARIS INI
  35. # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  36. class Scene_Title < Scene_Base
  37.   alias x_mulai_scene_title_x   start
  38.   def start
  39.     x_mulai_scene_title_x
  40.     x_pasang_transisi_x
  41.   end
  42.   def x_pasang_transisi_x    
  43.     transisi = Array.new
  44.     transisi = X_Random_Title_Transition_X::Transisi
  45.     acak_transisi = rand(transisi.size)
  46.     Graphics.transition(X_Random_Title_Transition_X::Durasi_Transisi,
  47.       X_Random_Title_Transition_X::Lokasi_File_Transisi + (transisi[acak_transisi].to_s),
  48.       X_Random_Title_Transition_X::Nilai_Ambiguitas)
  49.   end  
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement