赞 | 0 |
VIP | 1 |
好人卡 | 0 |
积分 | 1 |
经验 | 1064 |
最后登录 | 2012-12-8 |
在线时间 | 4 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 4 小时
- 注册时间
- 2008-6-5
- 帖子
- 312
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
下面的是一个人帮我修改的基本,但是我加入图片后选择官方网和制作人群时突破不会变化...怎么改啊??还有这么设置点击制作人群时显示图片!!!- #==============================================================================
- # 本脚本来自www.66RPG.com,使用和转载请保留此信息
- #==============================================================================
- #==============================================================================
- # ■ 图片标题菜单1.0
- # Scene_Title
- #------------------------------------------------------------------------------
- # 作者:chaochao
- # http://zhuchao.go1.icpcn.com
- #==============================================================================
- class Scene_Title
- def main
- if $BTEST
- battle_test
- return
- end
- $data_actors = load_data("Data/Actors.rxdata")
- $data_classes = load_data("Data/Classes.rxdata")
- $data_skills = load_data("Data/Skills.rxdata")
- $data_items = load_data("Data/Items.rxdata")
- $data_weapons = load_data("Data/Weapons.rxdata")
- $data_armors = load_data("Data/Armors.rxdata")
- $data_enemies = load_data("Data/Enemies.rxdata")
- $data_troops = load_data("Data/Troops.rxdata")
- $data_states = load_data("Data/States.rxdata")
- $data_animations = load_data("Data/Animations.rxdata")
- $data_tilesets = load_data("Data/Tilesets.rxdata")
- $data_common_events = load_data("Data/CommonEvents.rxdata")
- $data_system = load_data("Data/System.rxdata")
- $game_system = Game_System.new
- # 生成标题图形
- @sprite = [Sprite.new]
- for i in 0..10
- @sprite[i] = Sprite.new
- end
- @sprite[0].bitmap = RPG::Cache.title($data_system.title_name)
- @sprite[0].opacity = 0
- #开始游戏的图片
- @sprite[1].bitmap = Bitmap.new("Graphics/Pictures/start-1")
- @sprite[2].bitmap = Bitmap.new("Graphics/Pictures/start-2")
- #继续游戏的图片
- @sprite[3].bitmap = Bitmap.new("Graphics/Pictures/continue-1")
- @sprite[4].bitmap = Bitmap.new("Graphics/Pictures/continue-2")
- #结束游戏的图片
- @sprite[5].bitmap = Bitmap.new("Graphics/Pictures/exit-1")
- @sprite[6].bitmap = Bitmap.new("Graphics/Pictures/exit-2")
- #——制作人群
- @sprite[7].bitmap = Bitmap.new("Graphics/Pictures/exit-1")
- @sprite[8].bitmap = Bitmap.new("Graphics/Pictures/exit-2")
- #——官方网站
- @sprite[9].bitmap = Bitmap.new("Graphics/Pictures/luntan-1")
- @sprite[10].bitmap = Bitmap.new("Graphics/Pictures/luntan-2")
- #图片位置
- for i in 1..10
- x=192
- y=(i+1)/2*35+240 #——240为y坐标,自己改- -+
- @sprite[i].x =x
- @sprite[i].y =y
- end
- @continue_enabled = false
- for i in 0..3
- if FileTest.exist?("Save#{i+1}.rxdata")
- @continue_enabled = true
- end
- end
- if @continue_enabled
- @command_index = 1
- else
- @command_index = 0
- @sprite[3].tone = Tone.new(0, 0, 0, 255)
- @sprite[4].tone = Tone.new(0, 0, 0, 255)
- end
- $game_system.bgm_play($data_system.title_bgm)
- Audio.me_stop
- Audio.bgs_stop
- Graphics.transition
- loop do
- Graphics.update
- #淡出背景圖形
- if @sprite[0].opacity <= 255
- @sprite[0].opacity += 15
- end
- Input.update
- update
- if $scene != self
- break
- end
- end
- Graphics.freeze
- # 釋放圖形
- for i in 0..10
- @sprite[i].bitmap.dispose
- @sprite[i].dispose
- end
- end
- def update
- chaochaocommandchaochao
- if Input.trigger?(Input::C)
- case @command_index
- when 0
- command_new_game
- when 1
- command_continue
- when 2
- command_shutdown
- when 3
- $game_system.se_play($data_system.decision_se)
- Audio.bgm_stop
- Graphics.frame_count = 0
- $game_temp = Game_Temp.new
- $game_system = Game_System.new
- $game_switches = Game_Switches.new
- $game_variables = Game_Variables.new
- $game_self_switches = Game_SelfSwitches.new
- $game_screen = Game_Screen.new
- $game_actors = Game_Actors.new
- $game_party = Game_Party.new
- $game_troop = Game_Troop.new
- $game_map = Game_Map.new
- $game_player = Game_Player.new
- $game_party.setup_starting_members
- $game_map.setup(1) #——地图编号
- $game_player.moveto(1, 2) #——地图坐标
- $game_player.refresh
- $game_map.autoplay
- $game_map.update
- $scene = Scene_Map.new
- when 4
- $bb_66rpg = Win32API.new('shell32.dll','ShellExecuteA',%w(p p p p p i),'i')
- $bb_66rpg.call(0, 'open', 'http://rpg.blue/web/',0, 0, 1)
- end
- end
- end
- def chaochaocommandchaochao
- if Input.trigger?(Input::UP)
- @command_index -= 1
- if @command_index < 0
- @command_index = 4
- end
- $game_system.se_play($data_system.cursor_se)
- end
- if Input.trigger?(Input::DOWN)
- @command_index += 1
- if @command_index > 4
- @command_index = 0
- end
- $game_system.se_play($data_system.cursor_se)
- end
- case @command_index
- when 0
- if @sprite[1].opacity >= 0
- @sprite[1].opacity -= 30
- end
- if @sprite[2].opacity <= 240
- @sprite[2].opacity += 30
- end
- if @sprite[3].opacity <= 210
- @sprite[3].opacity += 30
- end
- if @sprite[4].opacity >= 0
- @sprite[4].opacity -= 30
- end
- if @sprite[5].opacity <= 210
- @sprite[5].opacity += 30
- end
- if @sprite[6].opacity >= 0
- @sprite[6].opacity -= 30
- end
- #
- if @sprite[7].opacity >= 0
- @sprite[7].opacity -= 30
- end
- if @sprite[8].opacity <= 0
- @sprite[8].opacity += 30
- end
- if @sprite[9].opacity >= 0
- @sprite[9].opacity -= 30
- end
- if @sprite[10].opacity <= 0
- @sprite[10].opacity += 30
- end
- #
- when 1
- if @sprite[1].opacity <= 210
- @sprite[1].opacity += 30
- end
- if @sprite[2].opacity >= 0
- @sprite[2].opacity -= 30
- end
- if @sprite[3].opacity >= 0
- @sprite[3].opacity -= 30
- end
- if @sprite[4].opacity <= 240
- @sprite[4].opacity += 30
- end
- if @sprite[5].opacity <= 210
- @sprite[5].opacity += 30
- end
- if @sprite[6].opacity >= 0
- @sprite[6].opacity -= 30
- end
- #
- if @sprite[7].opacity >= 0
- @sprite[7].opacity -= 30
- end
- if @sprite[8].opacity <= 0
- @sprite[8].opacity += 30
- end
- if @sprite[9].opacity >= 0
- @sprite[9].opacity -= 30
- end
- if @sprite[10].opacity <= 0
- @sprite[10].opacity += 30
- end
- #
- when 2
- if @sprite[1].opacity <= 210
- @sprite[1].opacity += 30
- end
- if @sprite[2].opacity >= 0
- @sprite[2].opacity -= 30
- end
- if @sprite[3].opacity <= 210
- @sprite[3].opacity += 30
- end
- if @sprite[4].opacity >= 0
- @sprite[4].opacity -= 30
- end
- if @sprite[5].opacity >= 0
- @sprite[5].opacity -= 30
- end
- if @sprite[6].opacity <= 240
- @sprite[6].opacity += 30
- end
- #
- if @sprite[7].opacity >= 0
- @sprite[7].opacity -= 30
- end
- if @sprite[8].opacity <= 0
- @sprite[8].opacity += 30
- end
- if @sprite[9].opacity >= 0
- @sprite[9].opacity -= 30
- end
- if @sprite[10].opacity <= 0
- @sprite[10].opacity += 30
- end
- #
- when 3
- if @sprite[1].opacity <= 210
- @sprite[1].opacity += 30
- end
- if @sprite[2].opacity >= 0
- @sprite[2].opacity -= 30
- end
- if @sprite[3].opacity <= 210
- @sprite[3].opacity += 30
- end
- if @sprite[4].opacity >= 0
- @sprite[4].opacity -= 30
- end
- if @sprite[5].opacity <= 210
- @sprite[5].opacity += 30
- end
- if @sprite[6].opacity >= 0
- @sprite[6].opacity -= 30
- end
- #
- if @sprite[7].opacity >= 0
- @sprite[7].opacity -= 30
- end
- if @sprite[8].opacity <= 0
- @sprite[8].opacity += 30
- end
- if @sprite[9].opacity >= 0
- @sprite[9].opacity += 30
- end
- if @sprite[10].opacity <= 0
- @sprite[10].opacity -= 30
- end
- #
- when 4
- if @sprite[1].opacity <= 210
- @sprite[1].opacity += 30
- end
- if @sprite[2].opacity >= 0
- @sprite[2].opacity -= 30
- end
- if @sprite[3].opacity <= 210
- @sprite[3].opacity += 30
- end
- if @sprite[4].opacity >= 0
- @sprite[4].opacity -= 30
- end
- if @sprite[5].opacity <= 210
- @sprite[5].opacity += 30
- end
- if @sprite[6].opacity >= 0
- @sprite[6].opacity -= 30
- end
- #
- if @sprite[7].opacity >= 0
- @sprite[7].opacity += 30
- end
- if @sprite[8].opacity <= 0
- @sprite[8].opacity -= 30
- end
- if @sprite[9].opacity >= 0
- @sprite[9].opacity -= 30
- end
- if @sprite[10].opacity <= 0
- @sprite[10].opacity += 30
- end
- #
- end
- end
- end
- #==============================================================================
- # 本脚本来自www.66RPG.com,使用和转载请保留此信息
- #==============================================================================
复制代码 |
|