Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ==============================================================================
- # ▼▼▼▼▼▼ TroyZ - Random Title Transition ▼▼▼▼▼▼
- # ==============================================================================
- # Script by : Agung Prasetyo(TroyZ)
- # Contact me by : - Email agung.endisnear.xyz@gmail.com
- # - Forum RPGMakerID, username TroyZ
- # - Handphone 085756289121
- # Engine : VXAce
- # Level : Easy
- # Version : 1.0
- # ------------------------------------------------------------------------------
- # License : Silahkan digunakan untuk game free ataupun yang komersil. Game
- # free ataupun komersil, saya hanya minta nama saya ada di credit. Credit atas
- # nama Agung Prasetyo(TroyZ).
- # ------------------------------------------------------------------------------
- # Dengan script ini, kamu bisa memasang transisi saat title screen muncul.
- # Transisi akan ditampilkan secara acak.
- ($imported ||= {})[:TroyZ_RandomTitleTransition] = true
- module X_Random_Title_Transition_X
- Durasi_Transisi = 120 # dalam frame. 60 frame = 1 detik
- # Pasang file transisimu dibawah ini
- Transisi = ["5 Line", "Cool", "Crack", "Curve", "Diamond",
- "Flat Square", "Flat", "Fog", "Scattered", "Spark",
- "Spin", "Square", "Stars", "Strange", "Wall", "Whirl",
- "Whirl2", "Whirl3", "Whirl4", "Whirl5", "Whorl"]
- # Set lokasi direktori file transisi dibawah ini
- Lokasi_File_Transisi = "Graphics/Transition/"
- # Set nilai ambiguitas antara gambar dengan pinggiran gambar dibawah ini.
- # Semakin tinggi nilai ambiguitas, pinggiran gambar transisi akan semakin halus
- # ditampilkan
- Nilai_Ambiguitas = 100
- end
- # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- # BATAS KONFIGURASI. DILARANG MELEWATI GARIS INI
- # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- class Scene_Title < Scene_Base
- alias x_mulai_scene_title_x start
- def start
- x_mulai_scene_title_x
- x_pasang_transisi_x
- end
- def x_pasang_transisi_x
- transisi = Array.new
- transisi = X_Random_Title_Transition_X::Transisi
- acak_transisi = rand(transisi.size)
- Graphics.transition(X_Random_Title_Transition_X::Durasi_Transisi,
- X_Random_Title_Transition_X::Lokasi_File_Transisi + (transisi[acak_transisi].to_s),
- X_Random_Title_Transition_X::Nilai_Ambiguitas)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement