赞 | 0 |
VIP | 0 |
好人卡 | 4 |
积分 | 1 |
经验 | 8178 |
最后登录 | 2021-7-31 |
在线时间 | 48 小时 |
Lv1.梦旅人 真实之终章
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 48 小时
- 注册时间
- 2008-8-7
- 帖子
- 281
|
- class Scene_Map
- def transfer_player
- $game_temp.player_transferring = false
- if $game_map.map_id != $game_temp.player_new_map_id
- Graphics.transition
- data_mapinfos = load_data("Data/MapInfos.rxdata")
- #p data_mapinfos[$game_temp.player_new_map_id].name
- # get sprites
- sprite = Sprite.new
- sprite.z = 1000000
- sprite.bitmap = Bitmap.new(640,480)
- name = data_mapinfos[$game_temp.player_new_map_id].name
- sprite.bitmap.draw_text(0,0,640,480,name,1)
- sprite.opacity = 0
- for i in 1..10
- sprite.opacity += 25
- Graphics.update
- end
- for i in 1..20
- Graphics.update
- end
- for i in 1..10
- sprite.opacity -= 25
- Graphics.update
- end
- sprite.dispose
- Graphics.freeze
- $game_map.setup($game_temp.player_new_map_id)
- end
- $game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
- case $game_temp.player_new_direction
- when 2 # 下
- $game_player.turn_down
- when 4 # 左
- $game_player.turn_left
- when 6 # 右
- $game_player.turn_right
- when 8 # 上
- $game_player.turn_up
- end
- $game_player.straighten
- $game_map.update
- @spriteset.dispose
- @spriteset = Spriteset_Map.new
- if $game_temp.transition_processing
- $game_temp.transition_processing = false
- Graphics.transition(20)
- end
- $game_map.autoplay
- Graphics.frame_reset
- Input.update
- end
- end
复制代码 |
|