设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2509|回复: 5
打印 上一主题 下一主题

[已经解决] 哈哈 求帮改个坐标

[复制链接]

Lv1.梦旅人

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
帖子
386
跳转到指定楼层
1
发表于 2013-11-9 16:43:05 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 魔力的觉醒 于 2013-11-9 18:30 编辑

请帮我改一下坐标  就差这个了!!!!!!!
RUBY 代码复制
  1. #==============================================================================
  2. # +++ MOG - Blitz Commands (v1.1) +++
  3. #==============================================================================
  4. # By Moghunter
  5. # [url]http://www.atelier-rgss.com/[/url]
  6. #==============================================================================
  7. # Permite ativar ações através de sequência de comandos.
  8. #==============================================================================
  9. # UTILIZAÇÃO
  10. #==============================================================================
  11. # No banco de dados de habilidades ou itens, coloque o seguinte comentário na
  12. # caixa de notas.
  13. #
  14. # <Blitz Command>
  15. #
  16. # * Lembre-se de definir a sequência de botões no editor de script antes de
  17. # usar a habilidade
  18. #
  19. # Para definir uma velocidade especifica na sequência de botões use o cometário
  20. # abaixo.
  21. #
  22. # <Blitz Speed = X>
  23. #
  24. #==============================================================================
  25. # Arquivos necessários. Graphics/System/
  26. #==============================================================================
  27. #
  28. # Blitz_Background.png
  29. # Blitz_Flash.png
  30. # Blitz_Layout.png
  31. # Blitz_Meter.png
  32. # Chain_Command.png
  33. #
  34. #==============================================================================
  35.  
  36. #==============================================================================
  37. # ● Histórico (Version History)
  38. #==============================================================================
  39. # v 1.1 - Melhoria na performance
  40. #==============================================================================
  41.  
  42. module MOG_BLITZ_COMMANDS
  43.   #Definição do tempo para inserir os comandos. (tempo X quantidade de comandos)
  44.   DEFAULT_INPUT_DURATION = 30
  45. #==============================================================================
  46. # BLITZ_INPUT = { SKILL_ID => [COMMAND] }
  47. #
  48. # SKILL_ID = ID da habilidade no banco de dados.
  49. # COMMANDS = Defina aqui a sequência de botões.
  50. #            (Para fazer a sequência use os comandos abaixo)   
  51. #  
  52. # "Down" ,"Up" ,"Left" ,"Right" ,"Shift" ,"D" ,"S" ,"A" ,"Z" ,"X" ,"Q" ,"W"
  53. #
  54. # Exemplo de utilização
  55. #
  56. # BLITZ_INPUT = {
  57. # 25=>["Down","D","S","Right"],
  58. # 59=>["Down","Up","Left","Right","Shift","D","S","A","Z","X","Q","W"],
  59. # 80=>["Shift","D"]
  60. # }   
  61. #==============================================================================
  62.   BLITZ_INPUT = {
  63.    22=>["Left","Up","Right","Down","Up","Down","Left","Right","Z"],
  64.    51=>["Up","Down","Left","Right","Z"],
  65.    53=>["X","Z","A","S","D"],
  66.    61=>["Z","D","X","Right","Left"],
  67.    62=>["Right","Left","Right","Q","Z","Z","D","X","Right","Left"],
  68.    66=>["Right","Up","Up","Z"],
  69.    69=>["X","Right","Left","Z","Z"],
  70.    141=>["Down","Right","Down","Right","A"],
  71.    999=>["Left","Right","Left","Right","Left","Right","Q","Z","Up","A","S",
  72.         "Down","D","Z","Right","Up","Up","Z","W","Left","Down","D","A","W"]
  73. }  
  74. #Ativar animação da imagem de fundo.
  75. BACKGROUND_ENABLE = false
  76. #Velocidade de deslize da imagem de fundo.
  77. BACKGROUND_SCROLL_SPEED = [30,0]
  78. #Posição do layout.
  79. BLITZ_POSITION = [0,0]
  80. #Posição do botão.
  81. BUTTON_POSITION = [265,170]
  82. #Posição do medidor de tempo.
  83. METER_POSITION = [63,249]
  84. #Posição do sprite Flash.
  85. FLASH_POSITION = [0,146]
  86. #Posição do ícone.
  87. ICON_POSITION = [0,0]
  88. #Posição do nome da skill
  89. SKILL_NAME_POSITION = [180,140]
  90. #Definição das palavras usadas no sistema blitz.
  91. BLITZ_WORDS = ["Missed!", "Timeover", "Success!"]
  92. #Configuração da fonte.
  93. FONT_NAME = "Georgia"
  94. FONT_SIZE = 22
  95. FONT_COLOR = Color.new(255,255,255)
  96. #Prioridade dos sprites.
  97. BLITZ_Z = 100
  98. #Som ao acertar.
  99. RIGHT_SE = "Chime1"
  100. #Som ao errar.
  101. WRONG_SE = "Buzzer1"  
  102. #Definição do som ao ativar o sistema.
  103. BLITZ_START_SE = "Saint9"
  104. end
  105.  
  106. #==============================================================================
  107. # ■ Game Temp
  108. #==============================================================================
  109. class Game_Temp
  110.   attr_accessor :blitz_commands
  111.  
  112.   #--------------------------------------------------------------------------
  113.   # ● Initialize
  114.   #--------------------------------------------------------------------------      
  115.   alias mog_blits_commands_initialize initialize
  116.   def initialize
  117.       @blitz_commands = [false,0]
  118.       mog_blits_commands_initialize
  119.   end
  120.  
  121. end
  122.  
  123. #==============================================================================
  124. # ■ Scene_Battle
  125. #==============================================================================
  126. class Scene_Battle < Scene_Base
  127.  
  128.   #--------------------------------------------------------------------------
  129.   # ● Use Item
  130.   #--------------------------------------------------------------------------  
  131.   alias mog_blitz_commands_use_item use_item
  132.   def use_item
  133.       if can_execute_blitz_input?
  134.          execute_blitz_input
  135.          unless $game_temp.blitz_commands[1] == nil
  136.              return if !$game_temp.blitz_commands[0]
  137.          end
  138.       end
  139.       mog_blitz_commands_use_item     
  140.   end
  141.  
  142.   #--------------------------------------------------------------------------
  143.   # ● Can Execute Blitz Input
  144.   #--------------------------------------------------------------------------   
  145.   def can_execute_blitz_input?
  146.       return false if !@subject.is_a?(Game_Actor)
  147.       for i in @subject.states
  148.           return false if i.restriction > 0
  149.       end   
  150.       return true
  151.   end
  152.  
  153.   #--------------------------------------------------------------------------
  154.   # ● Execute Blitz Input
  155.   #--------------------------------------------------------------------------   
  156.   def execute_blitz_input
  157.       $game_temp.blitz_commands[0] = false
  158.       action_id = @subject.current_action.item.note =~ /<Blitz Command>/ ? @subject.current_action.item.id : nil
  159.       $game_temp.blitz_commands[1] = action_id
  160.       return if action_id == nil
  161.       blitz_command_sequence = MOG_BLITZ_COMMANDS::BLITZ_INPUT[action_id]
  162.       if blitz_command_sequence != nil   
  163.          blitz_sq = Blitz_Commands.new(blitz_command_sequence, @subject ,action_id)
  164.          loop do
  165.               unless @spriteset.animation?
  166.                   blitz_sq.update
  167.                   Input.update
  168.               end
  169.               @spriteset.update
  170.               Graphics.update
  171.               break if blitz_sq.phase == 9
  172.          end
  173.          blitz_sq.dispose
  174.       end        
  175.   end
  176.  
  177. end
  178.  
  179. #==============================================================================
  180. # Game Temp
  181. #==============================================================================
  182. class Game_Temp
  183.  
  184.   attr_accessor :cache_blitz_command
  185.  
  186.   #--------------------------------------------------------------------------
  187.   # ● Initialize
  188.   #--------------------------------------------------------------------------
  189.   alias mog_blitz_command_initialize initialize   
  190.   def initialize
  191.       mog_blitz_command_initialize
  192.       cache_blt_cmd
  193.   end
  194.  
  195.   #--------------------------------------------------------------------------
  196.   # ● Cache Blt Cmd
  197.   #--------------------------------------------------------------------------  
  198.   def cache_blt_cmd
  199.       @cache_blitz_command = []
  200.       @cache_blitz_command.push(Cache.system("Blitz_Background"))
  201.       @cache_blitz_command.push(Cache.system("IconSet"))
  202.       @cache_blitz_command.push(Cache.system("Blitz_Flash"))
  203.       @cache_blitz_command.push(Cache.system("Blitz_Meter"))
  204.       @cache_blitz_command.push(Cache.system("Blitz_Layout"))
  205.       @cache_blitz_command.push(Cache.system("Chain_Battle_Command"))
  206.   end
  207.  
  208. end
  209.  
  210.  
  211. #==============================================================================
  212. # ■ Spriteset Battle
  213. #==============================================================================
  214. class Spriteset_Battle
  215.  
  216.   #--------------------------------------------------------------------------
  217.   # ● Initialize
  218.   #--------------------------------------------------------------------------   
  219.   alias mog_blitz_commands_initialize initialize
  220.   def initialize
  221.       $game_temp.cache_blt_cmd
  222.       mog_blitz_commands_initialize     
  223.   end
  224. end  
  225. #==============================================================================
  226. # Blitz Commands
  227. #==============================================================================
  228. class Blitz_Commands
  229.   include MOG_BLITZ_COMMANDS
  230.   attr_accessor :phase
  231.  
  232.   #--------------------------------------------------------------------------
  233.   # ● Initialize
  234.   #--------------------------------------------------------------------------      
  235.   def initialize(sequence, subject,action_id)
  236.       @phase = 0
  237.       [url=home.php?mod=space&uid=95897]@actor[/url] = subject
  238.       [url=home.php?mod=space&uid=260100]@skill[/url] = $data_skills[action_id]
  239.       @skillname = @skill.name
  240.       @action_id = action_id
  241.       @chain_command = sequence
  242.       duration = @skill.note =~ /<Blitz Speed = (\d+)>/i ? $1.to_i : DEFAULT_INPUT_DURATION
  243.       @timer_max = duration * @chain_command.size
  244.       @timer_max = 1 if @timer_max < 1
  245.       @timer = @timer_max
  246.       [url=home.php?mod=space&uid=10462]@Com[/url] = 0
  247.       @com_index = 0
  248.       @new_x = 0
  249.       [url=home.php?mod=space&uid=297884]@END[/url] = false
  250.       Audio.se_play("Audio/SE/" + BLITZ_START_SE, 100, 100) rescue nil
  251.       create_sprites
  252.   end
  253.  
  254.   #--------------------------------------------------------------------------
  255.   # ● Create Sprites
  256.   #--------------------------------------------------------------------------        
  257.   def create_sprites
  258.       create_background
  259.       create_layout
  260.       create_buttons
  261.       create_meter
  262.       create_flash
  263.       create_skill_name
  264.       create_icon      
  265.   end
  266.  
  267.   #--------------------------------------------------------------------------
  268.   # ● Create Background
  269.   #--------------------------------------------------------------------------        
  270.   def create_background
  271.       @background = Plane.new
  272.       @background.bitmap = $game_temp.cache_blitz_command[0]
  273.       @background.z = BLITZ_Z
  274.       @background.visible = BACKGROUND_ENABLE
  275.       @background.opacity = 0
  276.   end
  277.  
  278.   #--------------------------------------------------------------------------
  279.   # ● Create Icon
  280.   #--------------------------------------------------------------------------      
  281.   def create_icon
  282.       @icon_image = $game_temp.cache_blitz_command[1]
  283.       @icon_sprite = Sprite.new
  284.       @icon_sprite.bitmap = Bitmap.new(24,24)
  285.       @icon_sprite.z = BLITZ_Z + 3
  286.       @org_x2 = 80 + ICON_POSITION[0] - @center + SKILL_NAME_POSITION[0]
  287.       @icon_sprite.x = @org_x2      
  288.       @icon_sprite.y = ICON_POSITION[1] + SKILL_NAME_POSITION[1]     
  289.       icon_rect = Rect.new(@skill.icon_index % 16 * 24, @skill.icon_index / 16 * 24, 24, 24)
  290.       @icon_sprite.bitmap.blt(0,0, @icon_image, icon_rect)
  291.       @icon_sprite.opacity = 0
  292.   end  
  293.  
  294.   #--------------------------------------------------------------------------
  295.   # ● Initialize
  296.   #--------------------------------------------------------------------------      
  297.   def create_skill_name
  298.       @skill_name = Sprite.new
  299.       @skill_name.bitmap = Bitmap.new(200,32)
  300.       @skill_name.bitmap.font.name = FONT_NAME
  301.       @skill_name.bitmap.font.size = FONT_SIZE
  302.       @skill_name.z = BLITZ_Z + 3
  303.       @skill_name.y = SKILL_NAME_POSITION[1]
  304.       @skill_name.opacity = 0
  305.       refresh_skill_name
  306.   end
  307.  
  308.   #--------------------------------------------------------------------------
  309.   # ● Refresh Skill Name
  310.   #--------------------------------------------------------------------------        
  311.   def refresh_skill_name
  312.       cm = @skillname.to_s.split(//).size
  313.       @center = ((200 / @skill_name.bitmap.font.size) * cm / 2) + 5
  314.       @org_x = SKILL_NAME_POSITION[0]
  315.       @skill_name.x = @org_x  
  316.       @skill_name.bitmap.font.color = Color.new(0,0,0)
  317.       @skill_name.bitmap.draw_text(1,1,200,32,@skillname.to_s,1)  
  318.       @skill_name.bitmap.font.color = FONT_COLOR
  319.       @skill_name.bitmap.draw_text(0,0,200,32,@skillname.to_s,1)  
  320.   end  
  321.  
  322.   #--------------------------------------------------------------------------
  323.   # ● Create Flash
  324.   #--------------------------------------------------------------------------         
  325.   def create_flash
  326.       @flash_type = 0
  327.       @flash_image = $game_temp.cache_blitz_command[2]
  328.       @flash_cw = @flash_image.width
  329.       @flash_ch = @flash_image.height / 2
  330.       [url=home.php?mod=space&uid=14082]@Flash[/url] = Sprite.new
  331.       @flash.bitmap = Bitmap.new(@flash_cw,@flash_ch)
  332.       @flash.x = FLASH_POSITION[0]
  333.       @flash.y = FLASH_POSITION[1]
  334.       @flash.z = BLITZ_Z + 2
  335.       @flash.opacity = 0
  336.       @flash.blend_type = 1
  337.       refresh_flash
  338.   end
  339.  
  340.   #--------------------------------------------------------------------------
  341.   # ● Refresh Flash
  342.   #--------------------------------------------------------------------------            
  343.   def refresh_flash
  344.       @flash.bitmap.clear
  345.       f_scr = Rect.new(0,@flash_type * @flash_ch,@flash_cw,@flash_ch)
  346.       @flash.bitmap.blt(0,0,@flash_image,f_scr)
  347.   end
  348.  
  349.   #--------------------------------------------------------------------------
  350.   # ● Create Meter
  351.   #--------------------------------------------------------------------------         
  352.   def create_meter
  353.       @meter_image = $game_temp.cache_blitz_command[3]
  354.       @meter_cw = @meter_image.width
  355.       @meter_ch = @meter_image.height
  356.       @meter_sprite = Sprite.new
  357.       @meter_sprite.bitmap = Bitmap.new(@meter_cw,@meter_ch)
  358.       @meter_sprite.x = METER_POSITION[0]
  359.       @meter_sprite.y = METER_POSITION[1]
  360.       @meter_sprite.z = BLITZ_Z + 2
  361.       @meter_sprite.opacity = 0
  362.       update_meter
  363.   end
  364.  
  365.   #--------------------------------------------------------------------------
  366.   # ● Update Meter
  367.   #--------------------------------------------------------------------------            
  368.   def update_meter
  369.       return if @meter_sprite == nil
  370.       @meter_sprite.bitmap.clear
  371.       m_width = @meter_cw * @timer / @timer_max
  372.       m_scr = Rect.new(0,0,m_width,@meter_ch)
  373.       @meter_sprite.bitmap.blt(0,0,@meter_image, m_scr)
  374.   end
  375.  
  376.   #--------------------------------------------------------------------------
  377.   # ● Create Layout
  378.   #--------------------------------------------------------------------------         
  379.   def create_layout
  380.       @layout = Sprite.new
  381.       @layout.bitmap = $game_temp.cache_blitz_command[4]
  382.       @layout.x = BLITZ_POSITION[0]
  383.       @layout.y = BLITZ_POSITION[1]
  384.       @layout.z = BLITZ_Z + 1
  385.       @layout.opacity = 0
  386.   end
  387.  
  388.   #--------------------------------------------------------------------------
  389.   # ● Create Buttons
  390.   #--------------------------------------------------------------------------      
  391.   def create_buttons
  392.      @image = $game_temp.cache_blitz_command[5]  
  393.      @image_cw = @image.width / 13
  394.      @image_ch = @image.height  
  395.      @image_cw_max = (@image_cw + 5) * @chain_command.size
  396.      @sprite = Sprite.new
  397.      @sprite.bitmap = Bitmap.new(@image_cw_max,@image_ch * 2)
  398.      if @chain_command.size <= 15
  399.         @sprite.x = (544 / 2) - ((@image_cw + 5) * @chain_command.size) / 2
  400.         @new_x = 0
  401.      else   
  402.         @sprite.x = (544 / 2)
  403.         @new_x = @sprite.x
  404.      end   
  405.      @sprite.x = BUTTON_POSITION[0]
  406.      @sprite.y = BUTTON_POSITION[1]
  407.      @sprite.z = BLITZ_Z + 1
  408.      @sprite.opacity = 0     
  409.      refresh_button
  410.   end  
  411.  
  412.   #--------------------------------------------------------------------------
  413.   # ● Refresh Button
  414.   #--------------------------------------------------------------------------         
  415.   def refresh_button
  416.       return if @sprite == nil
  417.       @sprite.bitmap.clear
  418.       index = 0
  419.       for i in @chain_command
  420.          command_list_check(i)
  421.          bitmap_src_rect = Rect.new(@com * @image_cw, 0, @image_cw, @image_ch)
  422.          if @com_index == index
  423.             @sprite.bitmap.blt(index * (@image_cw + 5) , 0, @image, bitmap_src_rect)
  424.          else
  425.             @sprite.bitmap.blt(index * (@image_cw + 5) , @image_ch, @image, bitmap_src_rect)
  426.          end
  427.          index += 1  
  428.       end        
  429.       @new_x = BUTTON_POSITION[0] - ((@image_cw + 5) * @com_index)
  430.   end
  431.  
  432.   #--------------------------------------------------------------------------
  433.   # ● Dispose
  434.   #--------------------------------------------------------------------------        
  435.   def dispose
  436.       dispose_background
  437.       dispose_layout
  438.       dispose_buttons
  439.       dispose_meter
  440.       dispose_flash
  441.       dispose_name
  442.       dispose_icon_sprite      
  443.   end
  444.  
  445.   #--------------------------------------------------------------------------
  446.   # ● Dispose Background
  447.   #--------------------------------------------------------------------------         
  448.   def dispose_background
  449.       return if @background == nil
  450.       @background.dispose
  451.       @background = nil
  452.   end  
  453.  
  454.   #--------------------------------------------------------------------------
  455.   # ● Dispose Icon Sprite
  456.   #--------------------------------------------------------------------------        
  457.   def dispose_icon_sprite
  458.       return if @icon_sprite == nil
  459.       @icon_sprite.bitmap.dispose
  460.       @icon_sprite.dispose
  461.       @icon_sprite = nil
  462.   end  
  463.  
  464.   #--------------------------------------------------------------------------
  465.   # ● Dispose Name
  466.   #--------------------------------------------------------------------------        
  467.   def dispose_name
  468.       return if @skill_name == nil
  469.       @skill_name.bitmap.dispose
  470.       @skill_name.dispose
  471.       @skill_name = nil
  472.   end  
  473.  
  474.   #--------------------------------------------------------------------------
  475.   # ● Dispose Flash
  476.   #--------------------------------------------------------------------------            
  477.   def dispose_flash
  478.       return if @flash == nil
  479.       @flash.bitmap.dispose
  480.       @flash.dispose
  481.       @flash = nil
  482.   end   
  483.  
  484.   #--------------------------------------------------------------------------
  485.   # ● Dispose Meter
  486.   #--------------------------------------------------------------------------            
  487.   def dispose_meter
  488.       return if @meter_sprite == nil
  489.       @meter_sprite.bitmap.dispose
  490.       @meter_sprite.dispose
  491.       @meter_sprite = nil
  492.   end  
  493.  
  494.   #--------------------------------------------------------------------------
  495.   # ● Dispose Buttons
  496.   #--------------------------------------------------------------------------         
  497.   def dispose_buttons
  498.       return if @sprite == nil
  499.       @sprite.bitmap.dispose
  500.       @sprite.dispose
  501.       @sprite = nil
  502.   end  
  503.  
  504.   #--------------------------------------------------------------------------
  505.   # ● Dispose Layout
  506.   #--------------------------------------------------------------------------            
  507.   def dispose_layout
  508.       return if @layout == nil
  509.       @layout.dispose
  510.       @layout = nil
  511.   end  
  512.  
  513.   #--------------------------------------------------------------------------
  514.   # ● Update
  515.   #--------------------------------------------------------------------------        
  516.   def update
  517.       if @end and @sprite.x == @new_x
  518.          update_flash
  519.          update_background
  520.          update_end
  521.          return
  522.       end
  523.       update_background
  524.       update_timer
  525.       update_command
  526.       update_slide_command
  527.       update_meter
  528.       update_flash
  529.       update_opacity
  530.   end
  531.  
  532.   #--------------------------------------------------------------------------
  533.   # ● Update Opacity
  534.   #--------------------------------------------------------------------------         
  535.   def update_opacity
  536.       return if @sprite.opacity == nil
  537.       @sprite.opacity += 10
  538.       @layout.opacity += 10
  539.       @meter_sprite.opacity += 10
  540.       @skill_name.opacity += 10
  541.       @background.opacity += 10
  542.       @icon_sprite.opacity += 10   
  543.   end
  544.  
  545.   #--------------------------------------------------------------------------
  546.   # ● Update End
  547.   #--------------------------------------------------------------------------         
  548.   def update_end
  549.       fade_speed = 6
  550.       @icon_sprite.opacity -= fade_speed
  551.       @background.opacity -= fade_speed
  552.       @skill_name.opacity -= fade_speed
  553.       @sprite.opacity -= fade_speed
  554.       @layout.opacity -= fade_speed
  555.       @meter_sprite.opacity -= fade_speed
  556.       @phase = 9 if @background.opacity == 0
  557.   end
  558.  
  559.   #--------------------------------------------------------------------------
  560.   # ● Update Background
  561.   #--------------------------------------------------------------------------         
  562.   def update_background
  563.       return if @background == nil
  564.       @background.ox += BACKGROUND_SCROLL_SPEED[0]
  565.       @background.oy += BACKGROUND_SCROLL_SPEED[1]
  566.   end   
  567.  
  568.   #--------------------------------------------------------------------------
  569.   # ● Update Flash
  570.   #--------------------------------------------------------------------------              
  571.   def update_flash
  572.       return if @flash == nil
  573.       return if @flash.opacity == 0
  574.       @flash.opacity -= 10
  575.   end  
  576.  
  577.   #--------------------------------------------------------------------------
  578.   # ● Update Timer
  579.   #--------------------------------------------------------------------------         
  580.   def update_timer
  581.       return if @timer == 0
  582.       @timer -= 1
  583.       wrong_command(1) if @timer == 0
  584.   end
  585.  
  586.   #--------------------------------------------------------------------------
  587.   # ● Update Slide Command
  588.   #--------------------------------------------------------------------------         
  589.   def update_slide_command
  590.       return if @sprite == nil
  591.       return if @sprite.x == @new_x
  592.       slide_speed = 5 + ((@sprite.x - @new_x).abs / 5)      
  593.       @sprite.x -= slide_speed
  594.       @sprite.x = @new_x if @sprite.x < @new_x
  595.   end
  596.  
  597. end
  598.  
  599. #==============================================================================
  600. # Blitz Commands
  601. #==============================================================================
  602. class Blitz_Commands
  603.  
  604. #--------------------------------------------------------------------------
  605. # ● Update Command
  606. #--------------------------------------------------------------------------      
  607. def update_command
  608.      return if @end
  609.      if Input.trigger?(Input::X)
  610.         check_command(0)
  611.      elsif Input.trigger?(Input::Z)  
  612.         check_command(1)
  613.      elsif Input.trigger?(Input::Y)  
  614.         check_command(2)
  615.      elsif Input.trigger?(Input::A)   
  616.         check_command(3)
  617.      elsif Input.trigger?(Input::C)           
  618.         check_command(4)
  619.      elsif Input.trigger?(Input::B)        
  620.         check_command(5)
  621.      elsif Input.trigger?(Input::L)        
  622.         check_command(6)
  623.      elsif Input.trigger?(Input::R)        
  624.         check_command(7)        
  625.      elsif Input.trigger?(Input::RIGHT)      
  626.         check_command(8)
  627.      elsif Input.trigger?(Input::LEFT)
  628.         check_command(9)
  629.      elsif Input.trigger?(Input::DOWN)
  630.         check_command(10)
  631.      elsif Input.trigger?(Input::UP)  
  632.         check_command(11)
  633.      end   
  634. end  
  635.  
  636. #--------------------------------------------------------------------------
  637. # ● command_list_check
  638. #--------------------------------------------------------------------------      
  639. def command_list_check(command)
  640.      case command
  641.          when "A"
  642.             @com = 0  
  643.          when "D"
  644.             @com = 1  
  645.          when "S"
  646.             @com = 2
  647.          when "Shift"
  648.             @com = 3
  649.          when "Z"
  650.             @com = 4
  651.          when "X"
  652.             @com = 5
  653.          when "Q"
  654.             @com = 6
  655.          when "W"
  656.             @com = 7            
  657.          when "Right"
  658.             @com = 8
  659.          when "Left"
  660.             @com = 9
  661.          when "Down"
  662.             @com = 10
  663.          when "Up"  
  664.             @com = 11
  665.          else   
  666.             @com = 12           
  667.      end
  668. end   
  669.  
  670. #--------------------------------------------------------------------------
  671. # ● check_command
  672. #--------------------------------------------------------------------------            
  673. def check_command(com)
  674.      index = 0
  675.      if com != -1
  676.         right_input = false
  677.         for i in @chain_command
  678.            if index == @com_index
  679.               command_list_check(i)
  680.               right_input = true if @com == com
  681.            end  
  682.           index += 1  
  683.        end  
  684.      else  
  685.        command_list_check(@com_index)
  686.        right_input = true
  687.      end  
  688.      if right_input
  689.  
  690.         next_command
  691.      else  
  692.         wrong_command(0)
  693.      end  
  694. end  
  695.  
  696. #--------------------------------------------------------------------------
  697. # ● Next Command
  698. #--------------------------------------------------------------------------            
  699. def next_command   
  700.      @flash.opacity = 255
  701.      @flash_type = 0
  702.      @com_index += 1   
  703.      Audio.se_play("Audio/SE/" + RIGHT_SE, 100, 100)
  704.      refresh_button
  705.      refresh_flash
  706.      if @com_index == @chain_command.size
  707.         @end = true
  708.         @skill_name.bitmap.clear
  709.         @skill_name.bitmap.draw_text(0,0,200,32,BLITZ_WORDS[2].to_s,1)
  710.         @icon_sprite.visible = false        
  711.         $game_temp.blitz_commands[0] = true
  712.      end
  713. end     
  714.  
  715. #--------------------------------------------------------------------------
  716. # ● wrong_command
  717. #--------------------------------------------------------------------------              
  718. def wrong_command(type)
  719.      Audio.se_play("Audio/SE/" + WRONG_SE, 100, 100)
  720.      @flash.opacity = 255
  721.      @flash_type = 1
  722.      @skill_name.bitmap.clear
  723.      @end = true
  724.      wname = type == 0 ? BLITZ_WORDS[0] : BLITZ_WORDS[1]
  725.      $game_temp.blitz_commands[0] = false
  726.      @skill_name.bitmap.draw_text(0,0,200,32,wname.to_s,1)
  727.      @icon_sprite.visible = false
  728.      refresh_flash
  729. end
  730.  
  731. end
  732.  
  733. $mog_rgss3_blitz_commands = true

求帮忙!!

S4MK%{F6C2FQFHR30JE2DO9.jpg (116.64 KB, 下载次数: 19)

S4MK%{F6C2FQFHR30JE2DO9.jpg

点评

连贴,要求不明确!! 来人呀!!!收税金了!  发表于 2013-11-9 16:49

评分

参与人数 1星屑 -30 收起 理由
熊喵酱 -30 伸手+水

查看全部评分

你的意思就是要打架咯?

Lv1.梦旅人

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
帖子
386
2
 楼主| 发表于 2013-11-9 16:43:59 | 只看该作者
@tan12345  
你的意思就是要打架咯?
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
113 小时
注册时间
2013-8-7
帖子
32
3
发表于 2013-11-9 16:58:11 | 只看该作者
星星!!!!我是耀星!!

评分

参与人数 1星屑 -50 收起 理由
熊喵酱 -50 查水表

查看全部评分

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
帖子
386
4
 楼主| 发表于 2013-11-9 17:09:26 | 只看该作者
让那几个字显示出来      还有技能那个图标让左移动一点
你的意思就是要打架咯?
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
帖子
386
5
 楼主| 发表于 2013-11-9 17:09:47 | 只看该作者
1312017233 发表于 2013-11-9 16:58
星星!!!!我是耀星!!

.......................

评分

参与人数 1星屑 -50 收起 理由
熊喵酱 -50 查水表

查看全部评分

你的意思就是要打架咯?
回复 支持 反对

使用道具 举报

Lv3.寻梦者

死亡颂唱者

梦石
0
星屑
1159
在线时间
1795 小时
注册时间
2011-10-21
帖子
2245

开拓者

6
发表于 2013-11-9 18:05:59 | 只看该作者
第88, 89行有个
  1. #Posição do nome da skill (技能名称位置)
  2. SKILL_NAME_POSITION = [180,140]
复制代码
把[ ]内的第一个数调大30左右试下

点评

谢谢 自己已经改好了!!!  发表于 2013-11-9 22:24

评分

参与人数 1星屑 +132 收起 理由
熊喵酱 + 132 认可答案

查看全部评分

这家伙很懒,什么也没有留下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-25 23:15

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表