赞 | 0 |
VIP | 6 |
好人卡 | 0 |
积分 | 1 |
经验 | 5677 |
最后登录 | 2018-10-15 |
在线时间 | 72 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 120
- 在线时间
- 72 小时
- 注册时间
- 2013-10-6
- 帖子
- 50
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 doubyen 于 2018-5-21 10:32 编辑
目前遇到的问题,在扩展分辨率后,我使用了 循环地图 v1.0 by 叶子 @66rpg天空工坊 的循环地图脚本,使地图左右循环;
现在唯一的问题是游戏运行卡顿,问题基本出在新插入的 LM Spriteset_Map里的脚本:
#==============================================================================
# ■ Spriteset_Map
#------------------------------------------------------------------------------
# 处理地图画面活动块和元件的类。本类在
# Scene_Map 类的内部使用。
#==============================================================================
class Spriteset_Map
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
alias initialize_leav_loop initialize
def initialize
initialize_leav_loop
# 生成角色活动块
if $game_map.horizontal_loop
for i in $game_map.events.keys.sort
@character_sprites.push(Sprite_Character_Loop.new(4, @viewport1, $game_map.events))
@character_sprites.push(Sprite_Character_Loop.new(6, @viewport1, $game_map.events))
end
@character_sprites.push(Sprite_Character_Loop.new(4, @viewport1, $game_player))
@character_sprites.push(Sprite_Character_Loop.new(6, @viewport1, $game_player))
end
if $game_map.vertical_loop
for i in $game_map.events.keys.sort
@character_sprites.push(Sprite_Character_Loop.new(2, @viewport1, $game_map.events))
@character_sprites.push(Sprite_Character_Loop.new(8, @viewport1, $game_map.events))
end
@character_sprites.push(Sprite_Character_Loop.new(2, @viewport1, $game_player))
@character_sprites.push(Sprite_Character_Loop.new(8, @viewport1, $game_player))
end
if $game_map.horizontal_loop and $game_map.vertical_loop
for i in $game_map.events.keys.sort
@character_sprites.push(Sprite_Character_Loop.new(1, @viewport1, $game_map.events))
@character_sprites.push(Sprite_Character_Loop.new(3, @viewport1, $game_map.events))
@character_sprites.push(Sprite_Character_Loop.new(7, @viewport1, $game_map.events))
@character_sprites.push(Sprite_Character_Loop.new(9, @viewport1, $game_map.events))
end
@character_sprites.push(Sprite_Character_Loop.new(1, @viewport1, $game_player))
@character_sprites.push(Sprite_Character_Loop.new(3, @viewport1, $game_player))
@character_sprites.push(Sprite_Character_Loop.new(7, @viewport1, $game_player))
@character_sprites.push(Sprite_Character_Loop.new(9, @viewport1, $game_player))
end
update
end
end
我查看了本站的帖子,唯一防卡顿的帖子并不针对扩展分辨率,所以急需各位大神帮忙,解决一下问题~~~
附件里有我的工程文件,请帮助修改,并备注修改方案 |
|