Project1

标题: 如何使让标题画面时首先显示选项再显示背景? [打印本页]

作者: 为什么不早说    时间: 2016-2-21 13:00
标题: 如何使让标题画面时首先显示选项再显示背景?
先显示“开始游戏”之类的选项,X帧后显示背景(不用渐变)
作者: cinderelmini    时间: 2016-2-21 14:22

  1. class Scene_Title < Scene_Base
  2.   #--------------------------------------------------------------------------
  3.   # ● 生成背景
  4.   #--------------------------------------------------------------------------
  5.   alias sn_160221_cb create_background
  6.   def create_background
  7.     sn_160221_cb
  8.     @sprite1.visible = false
  9.     @sprite2.visible = false
  10.     @wait_count = 90   # 要等待多少帧
  11.   end
  12.   
  13.   #--------------------------------------------------------------------------
  14.   # ● 画面更新
  15.   #--------------------------------------------------------------------------
  16.   alias sn_160221_update update
  17.   def update
  18.     sn_160221_update
  19.     update_show_background
  20.   end
  21.   
  22.   #--------------------------------------------------------------------------
  23.   # ● 画面更新:等待之后显示背景
  24.   #--------------------------------------------------------------------------
  25.   def update_show_background
  26.     return if @wait_count <= 0
  27.     @wait_count -= 1
  28.     if @wait_count <= 0
  29.       @sprite1.visible = true
  30.       @sprite2.visible = true
  31.     end
  32.   end
  33. end
复制代码
Main前Insert……帧数自己设定。
作者: Vortur    时间: 2016-2-22 00:21
使用事件标题可以做到。
不过这类教程实在太多,所以就不画蛇添足了,放上链接:
https://rpg.blue/thread-341966-1-1.html





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1