Il risultato è abbastanza piacevole però vorrei apportare una piccola modifica ovvero vorrei fare in modo che quando il cursore si sposta tra le quattro scelte (Shoot, Arrow, Victory e Cluster) sotto la scritta Posizione appaia un'immagine differente in base a dove si posizione il cursore.
Ecco degli esempi:
Se il cursore è su Shoot si dovrebbe presentare così:
Question
PrinceEndymion88
Prendendo spunto dallo scene_end ho "creato" questo script che mi permette di scegliere quale formazione voglio in battaglia. Lo script è il seguente:
#==============================================================================# ■ Scene_Formation#------------------------------------------------------------------------------# ゲーム終了画面の処理を行うクラスです。#============================================================================== class Scene_Formation def main s1 = "Shoot" s2 = "Arrow" s3 = "Victory" s4 = "Cluster" @command_window = Window_Command.new(192, [s1, s2, s3,s4]) @command_window .windowskin = RPG::Cache.windowskin("vuota") @command_window.x = 200 - @command_window.width / 2 @command_window.y = 120 - @command_window.height / 2 @command_window.opacity = 255 @command_window.contents_opacity = 255 @menu2 = Plane.new @menu2.bitmap = RPG::Cache.picture("MN_BK")@menu2.opacity = 255@menu3 = Plane.new @menu3.bitmap = RPG::Cache.picture("Fog-01")@menu3.opacity =60@menu = Plane.new @menu.bitmap = RPG::Cache.picture("formazione")@menu.opacity = 255 Graphics.transition(30, "Graphics/Transitions/" + "ripple") loop do Graphics.update Input.update update if $scene != self break end end for i in 0..20 @command_window.x -= 30 @command_window.opacity -= 15 @command_window.contents_opacity -= 15 Graphics.updateend Graphics.freeze @menu.dispose @menu2.dispose @menu3.dispose @command_window.dispose if $scene.is_a?(Scene_Title) Graphics.transition Graphics.freeze end end def update if @command_window.x > 115 @command_window.x -= 20 @command_window.opacity += 15 @command_window.contents_opacity += 15 end @menu3.ox += 1 @menu3.oy += 1 @menu2.ox -= 2 @command_window.update if Input.trigger?(Input::B) $game_system.se_play($data_system.cancel_se) $scene = Scene_Menu.new(5) return end # C ボタンが押された場合 if Input.trigger?(Input::C) # コマンドウィンドウのカーソル位置で分岐 case @command_window.index when 0 # タイトルへ $game_system.se_play($data_system.decision_se) $battle_formation = SHOOT $scene = Scene_Option.new when 1 # タイトルへ $game_system.se_play($data_system.decision_se) $battle_formation = ARROW $scene = Scene_Option.new when 2 # シャットダウン $game_system.se_play($data_system.decision_se) $battle_formation = VICTORY $scene = Scene_Option.new when 3 $game_system.se_play($data_system.decision_se) $battle_formation = CLUSTER $scene = Scene_Option.new end return end end endE quando lo richiamo con $scene = Scene_Formation.new si presenta in questo modo:
http://img218.imageshack.us/img218/4194/formazione1.png
Il risultato è abbastanza piacevole però vorrei apportare una piccola modifica ovvero vorrei fare in modo che quando il cursore si sposta tra le quattro scelte (Shoot, Arrow, Victory e Cluster) sotto la scritta Posizione appaia un'immagine differente in base a dove si posizione il cursore.
Ecco degli esempi:
Se il cursore è su Shoot si dovrebbe presentare così:
http://img222.imageshack.us/img222/936/formazione1shoot.png
Se il cursore è su Cluster invece l'immaginetta sotto posizione cambia in questo modo:
http://img237.imageshack.us/img237/8682/formazione1cluster.png
Le immagini che devono cambiare sono
http://img222.imageshack.us/img222/8204/shootformation.png -> Quando viene selezionato SHOOT
http://img218.imageshack.us/img218/4444/arrowformation.png -> Quando viene selezionato ARROW
http://img218.imageshack.us/img218/6081/victoryformation.png -> Quando viene selezionato VICTORY
http://img237.imageshack.us/img237/4713/clusterformation.png -> Quando viene selezionato CLUSTER
Spero che qualcuno riesca ad aiutarmi :D
Instagram: Sailor Moon Another Story 2
Canale YT: Sailor Moon Another Story 2
Pagina FB: Sailor Moon Another Story 2
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now