扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 99|回复: 0

[转载发布] 【RMXP发布】标题动画

[复制链接]
累计送礼:
0 个
累计收礼:
0 个
  • TA的每日心情
    开心
    昨天 18:01
  • 签到天数: 114 天

    连续签到: 4 天

    [LV.6]常住居民II

    2338

    主题

    403

    回帖

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    6
    卡币
    10622
    OK点
    16
    推广点
    0
    同能卷
    0
    积分
    13391

    灌水之王

    发表于 2024-4-18 19:29:58 | 显示全部楼层 |阅读模式
    好吧其实是从外站搬过来的- -就是那啥啦
    标题哇擦跳出来的 然后那啥不好截图描述- -你可以复制那啥去试下
    要改两个部分-
    第一个是Window_Command
    Window_Command全部覆盖为:

    RUBY 代码
    1. #        Escrito por:
    2. #                               LUCAS C.
    3. #                           Data: 12/11/2010
    4. #         Para:
    5. #                    "A galera do Mundo RPG Maker"                              
    6. class Window_Command < Window_Selectable
    7.   def initialize(width, commands)
    8.     super(0, 0, width, commands.size * 32 + 32)
    9.     @item_max = commands.size
    10.     @commands = commands
    11.     self.contents = Bitmap.new(width - 32, @item_max * 32)
    12.     refresh
    13.     self.index = 0
    14.   end
    15.   def refresh
    16.     self.contents.clear
    17.     for i in0...@item_max
    18.       draw_item(i, normal_color)
    19.     end
    20.   end
    21.   def draw_item(index, color)
    22.     self.contents.font.color = color
    23.     rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
    24.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    25.     self.contents.draw_text(rect, @commands[index])
    26.   end
    27.   def disable_item(index)
    28.     draw_item(index, disabled_color)
    29.   end
    30.   def enable_item(index)
    31.     draw_item(index, normal_color)
    32.   end
    33. end
    复制代码

    其次,俺们还得那啥把那啥改了 -
    Scene_Title覆盖为:

    RUBY 代码
    1. class Scene_Title
    2.   Velocidade = 15# MUDE Aqui a velocidade de entrada do menu
    3.   Velocidade2 = 20#MUDE AQUI A VELOCIDADE DE SAIDA DO MENU
    4. def main
    5.     if$BTEST
    6.       battle_test
    7.       return
    8.     end
    9.     $data_actors        = load_data("Data/Actors.rxdata")
    10.     $data_classes       = load_data("Data/Classes.rxdata")
    11.     $data_skills        = load_data("Data/Skills.rxdata")
    12.     $data_items         = load_data("Data/Items.rxdata")
    13.     $data_weapons       = load_data("Data/Weapons.rxdata")
    14.     $data_armors        = load_data("Data/Armors.rxdata")
    15.     $data_enemies       = load_data("Data/Enemies.rxdata")
    16.     $data_troops        = load_data("Data/Troops.rxdata")
    17.     $data_states        = load_data("Data/States.rxdata")
    18.     $data_animations    = load_data("Data/Animations.rxdata")
    19.     $data_tilesets      = load_data("Data/Tilesets.rxdata")
    20.     $data_common_events = load_data("Data/CommonEvents.rxdata")
    21.     $data_system        = load_data("Data/System.rxdata")
    22.     $game_system = Game_System.new
    23.     @sprite = Sprite.new
    24.     @sprite.bitmap = RPG::Cache.title($data_system.title_name)
    25.     s1 = "新游戏"
    26.     s2 = "继续"
    27.     s3 = "退出"
    28.     @command_window = Window_Command.new(192, [s1, s2, s3])
    29.     @command_window.back_opacity = 160
    30.     @command_window.x = 0 - @command_window.width / 2
    31.     @command_window.y = 288
    32.     @continue_enabled = false
    33.     @novo_jogo = false
    34.     @sair = false
    35.     @mover_janela = true
    36.     for i in0..3
    37.       ifFileTest.exist?("Save#{i+1}.rxdata")
    38.         @continue_enabled = true
    39.       end
    40.     end
    41.     if@continue_enabled
    42.     else
    43.       @command_window.disable_item(1)
    44.     end
    45.     $game_system.bgm_play($data_system.title_bgm)
    46.     Audio.me_stop
    47.     Audio.bgs_stop
    48.     Graphics.transition
    49.     loopdo
    50.       Graphics.update
    51.       Input.update
    52.       update
    53.       if$scene != self
    54.         break
    55.       end
    56.     end
    57.     Graphics.freeze
    58.     @command_window.dispose
    59.     @sprite.bitmap.dispose
    60.     @sprite.dispose
    61.   end  
    62.   def mover
    63.     if@command_window.x >= 320 - @command_window.width / 2
    64.       @mover_janela = false
    65.     end
    66.     if@mover_janela
    67.       @command_window.x += Velocidade
    68.       @continue_enable = false
    69.       @novo_jogo = false
    70.       @sair = false
    71.     else
    72.       #@command_window.x = 320 - @command_window.width / 2
    73.       @continue_enable = true
    74.       @novo_jogo = true
    75.       @sair = true
    76.     end
    77.   end
    78. def update   
    79.    mover
    80.     if@pressionado_novo_jogo
    81.         @novo_jogo = false
    82.         @continue_enable = false
    83.       @sair = false
    84.      @command_window.x += Velocidade2
    85.      @command_window.opacity -= Velocidade2
    86.      if@command_window.x >= 700
    87.        novojogo2
    88.      end
    89.    end
    90.     if@pressionado_continue
    91.        @novo_jogo = false
    92.        @continue_enable = false
    93.       @sair = false
    94.      @command_window.x += Velocidade2
    95.      @command_window.opacity -= Velocidade2
    96.      if@command_window.x >= 700
    97.         continue2
    98.      end
    99.    end
    100.     if@novo_jogo
    101.         @command_window.enable_item(0)
    102.     else
    103.       @command_window.disable_item(0)
    104.     end
    105.     if@sair
    106.       @command_window.enable_item(2)
    107.     else
    108.       @command_window.disable_item(2)
    109.     end
    110.       @command_window.update
    111.     if Input.trigger?(Input::C)
    112.       case@command_window.index
    113.       when0  
    114.         command_new_game
    115.       when1  
    116.         command_continue
    117.       when2  
    118.         command_shutdown
    119.       end
    120.     end
    121.   end
    122.   def command_new_game
    123.     unless@novo_jogo
    124.       $game_system.se_play($data_system.buzzer_se)
    125.       return
    126.     end
    127.     $game_system.se_play($data_system.decision_se)
    128.     Audio.bgm_stop
    129.   @pressionado_novo_jogo = true
    130. end
    131.    def novojogo2
    132.     Graphics.frame_count = 0
    133.     $game_temp          = Game_Temp.new
    134.     $game_system        = Game_System.new
    135.     $game_switches      = Game_Switches.new
    136.     $game_variables     = Game_Variables.new
    137.     $game_self_switches = Game_SelfSwitches.new
    138.     $game_screen        = Game_Screen.new
    139.     $game_actors        = Game_Actors.new
    140.     $game_party         = Game_Party.new
    141.     $game_troop         = Game_Troop.new
    142.     $game_map           = Game_Map.new
    143.     $game_player        = Game_Player.new
    144.     $game_party.setup_starting_members
    145.     $game_map.setup($data_system.start_map_id)
    146.     $game_player.moveto($data_system.start_x, $data_system.start_y)
    147.     $game_player.refresh
    148.     $game_map.autoplay
    149.     $game_map.update
    150.     $scene = Scene_Map.new
    151.   end
    152.   def command_continue
    153.     unless@continue_enabled
    154.       $game_system.se_play($data_system.buzzer_se)
    155.       return
    156.     end
    157.     if@continue_enable
    158.     @pressionado_continue = true
    159.     $game_system.se_play($data_system.decision_se)
    160.   else
    161.     $game_system.se_play($data_system.buzzer_se)
    162.   end
    163. end
    164.   def continue2
    165.     $scene = Scene_Load.new
    166.   end
    167.   def command_shutdown
    168.     unless@sair
    169.       $game_system.se_play($data_system.buzzer_se)
    170.       return
    171.     end
    172.     $game_system.se_play($data_system.decision_se)
    173.     Audio.bgm_fade(800)
    174.     Audio.bgs_fade(800)
    175.     Audio.me_fade(800)
    176.     $scene = nil
    177.   end
    178.   def battle_test
    179.     $data_actors        = load_data("Data/BT_Actors.rxdata")
    180.     $data_classes       = load_data("Data/BT_Classes.rxdata")
    181.     $data_skills        = load_data("Data/BT_Skills.rxdata")
    182.     $data_items         = load_data("Data/BT_Items.rxdata")
    183.     $data_weapons       = load_data("Data/BT_Weapons.rxdata")
    184.     $data_armors        = load_data("Data/BT_Armors.rxdata")
    185.     $data_enemies       = load_data("Data/BT_Enemies.rxdata")
    186.     $data_troops        = load_data("Data/BT_Troops.rxdata")
    187.     $data_states        = load_data("Data/BT_States.rxdata")
    188.     $data_animations    = load_data("Data/BT_Animations.rxdata")
    189.     $data_tilesets      = load_data("Data/BT_Tilesets.rxdata")
    190.     $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
    191.     $data_system        = load_data("Data/BT_System.rxdata")
    192.     Graphics.frame_count = 0
    193.     $game_temp          = Game_Temp.new
    194.     $game_system        = Game_System.new
    195.     $game_switches      = Game_Switches.new
    196.     $game_variables     = Game_Variables.new
    197.     $game_self_switches = Game_SelfSwitches.new
    198.     $game_screen        = Game_Screen.new
    199.     $game_actors        = Game_Actors.new
    200.     $game_party         = Game_Party.new
    201.     $game_troop         = Game_Troop.new
    202.     $game_map           = Game_Map.new
    203.     $game_player        = Game_Player.new
    204.     $game_party.setup_battle_test_members
    205.     $game_temp.battle_troop_id = $data_system.test_troop_id
    206.     $game_temp.battle_can_escape = true
    207.     $game_map.battleback_name = $data_system.battleback_name
    208.     $game_system.se_play($data_system.battle_start_se)
    209.     $game_system.bgm_play($game_system.battle_bgm)
    210.     $scene = Scene_Battle.new
    211.   end
    212. end
    复制代码


    大概有就这样- -那啥然后Scene_Title的前3行那个15和20分别是调出来的速度那啥,你要改可以试试- -
    越高越快大概就是酱紫- -{:2_280:}
                 本帖来自P1论坛作者1041235896,因Project1站服务器在国外有时候访问缓慢不方便作者交流学习,经联系P1站长fux2同意署名转载一起分享游戏制作经验,共同为国内独立游戏作者共同创造良好交流环境,原文地址:https://rpg.blue/forum.php?mod=viewthread&tid=375974  若有侵权,发帖作者可联系底部站长QQ在线咨询功能删除,谢谢。
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2025-3-15 00:08 , Processed in 0.136761 second(s), 57 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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