Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ==============================================================================
- # ▼▼▼▼▼▼ TroyZ - Press Start Button ▼▼▼▼▼▼
- # ==============================================================================
- # Script by : Agung Prasetyo(TroyZ)
- # Contact me by : - Email agung.endisnear.xyz@gmail.com
- # - Forum RPGMakerID, username TroyZ
- # - Handphone 085756289121
- # Engine : VXAce
- # Level : Normal
- # Version : 1.0
- # ------------------------------------------------------------------------------
- # Change Logs :
- # 27 Mei 2013 - Rilis script versi 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). Dan juga credit atas nama Tio Allin Subiantoro
- # (Theo Allen) yang sudah banyak membantu saya dalam memahami dasar pembuatan
- # dari script ini. Kalo mau ngedit-ngedit script ini terserah kamu, tapi jangan
- # sampe kamu klaim ini punya kamu ya. Kalo kamu udah ngedit script ini terus
- # pengen nge-publish script editan kamu, tulis seperti ini :
- # TroyZ - Press Start Button : Edited By Namanya Ente
- # ------------------------------------------------------------------------------
- # How to Use : Pasang saja dibawah material tapi diatas main. Kalo pake script
- # TroyZ - Random Title Transition, letakkan script ini diatasnya.
- # ------------------------------------------------------------------------------
- # WARNING : Sepertinya script ini akan ada masalah kompatibilitas dengan script
- # title screen yang lain, soalnya disini method start dan close_command_window saya
- # overwrite. Tapi, untuk meminimalkan masalah kompatibilitas, cobalah untuk
- # meletakkan script ini diatas dari script-script lain yang berhubungan
- # dengan title screen. Kalau ada masalah kompatibilitas dengan script ini
- # segera hubungi saya.
- # ------------------------------------------------------------------------------
- # Dengan script ini, kamu bisa memasang sebuah jendela konfirmasi pada title
- # screen yang mengharuskan pemain menekan tombol Start untuk masuk ke menu title.
- # Biasanya Press Start Button kayak gini banyak di game-game konsol, dan sekarang
- # kamu bisa menghadirkannya di RPG Maker VX Ace.
- $imported = {} if $imported.nil?
- $imported[:TroyZ_PressStartButton] = true
- module X_Press_Start_Button_X
- X_POS_TULISAN_PRESS_START = 0 # Posisi X dari tulisan press start button
- Y_POS_TULISAN_PRESS_START = 0 # Posisi Y dari tulisan press start button
- LEBAR_TULISAN_PRESS_START = 544 # Lebar tulisan press start button
- TINGGI_TULISAN_PRESS_START = 40 # Tinggi tulisan press start button
- TULISAN_PRESS_START = "Press Start Button" # Tulisan press start button yang
- # akan muncul dilayar
- ALIGNMENT_TULISAN_PRESS_START = 1 # Alignment tulisan press start button
- # 0 = Kiri
- # 1 = Tengah
- # 2 = Kanan
- X_WINDOW_PRESS_START = 0 # Posisi X jendela press start button
- Y_WINDOW_PRESS_START = 0 # Posisi Y jendela press start button
- LEBAR_WINDOW_PRESS_START = 544 # Lebar jendela press start button
- TINGGI_WINDOW_PRESS_START = 60 # Tinggi jendela press start button
- end
- # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- # BATAS KONFIGURASI. DILARANG MELEWATI GARIS INI
- # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- class Window_PressStartButton < Window_Base
- def initialize(x,y,width,height)
- super
- end
- def x_nulis_press_start_button_x
- draw_text(X_Press_Start_Button_X::X_POS_TULISAN_PRESS_START,
- X_Press_Start_Button_X::Y_POS_TULISAN_PRESS_START,
- X_Press_Start_Button_X::LEBAR_TULISAN_PRESS_START,
- X_Press_Start_Button_X::TINGGI_TULISAN_PRESS_START,
- X_Press_Start_Button_X::TULISAN_PRESS_START,
- X_Press_Start_Button_X::ALIGNMENT_TULISAN_PRESS_START)
- end
- def x_ilangin_press_start_button_x
- self.close
- end
- end
- class Window_TitleCommand < Window_Command
- def x_ilangin_title_command_x
- self.close
- end
- def x_muncul_title_command_x
- self.open
- end
- end
- class Scene_Title < Scene_Base
- def start
- super
- SceneManager.clear
- Graphics.freeze
- create_background
- create_foreground
- x_bikin_semua_window_x
- play_title_music
- end
- def x_bikin_semua_window_x
- @press_start = Window_PressStartButton.new(X_Press_Start_Button_X::X_WINDOW_PRESS_START,
- X_Press_Start_Button_X::Y_WINDOW_PRESS_START,
- X_Press_Start_Button_X::LEBAR_WINDOW_PRESS_START,
- X_Press_Start_Button_X::TINGGI_WINDOW_PRESS_START)
- @press_start.x_nulis_press_start_button_x
- @title_command = Window_TitleCommand.new
- @title_command.x_ilangin_title_command_x
- end
- def x_munculin_title_command_x
- Sound.play_ok
- @press_start.x_ilangin_press_start_button_x
- @title_command.x_muncul_title_command_x
- @title_command.set_handler(:new_game, method(:command_new_game))
- @title_command.set_handler(:continue, method(:command_continue))
- @title_command.set_handler(:shutdown, method(:command_shutdown))
- end
- def close_command_window
- @title_command.close
- update until @title_command.close?
- end
- alias x_update_x update
- def update
- x_munculin_title_command_x if Input.trigger?(:C) && @title_command.open? == false
- x_update_x
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement