赞 | 0 |
VIP | 15 |
好人卡 | 0 |
积分 | 1 |
经验 | 6134 |
最后登录 | 2017-5-19 |
在线时间 | 117 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 117 小时
- 注册时间
- 2010-11-11
- 帖子
- 85
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
使用的脚本如下
在战斗的时候没问题,但是在地图上行走的时候就跳帧了
人物无法做出流畅的行走动作……相对的就是感觉画面低于10帧的样子,望各位前辈解决……
(也怀疑过是CPU问题,但是查看任务管理器CPU应用率没满……)
#====================================================================== # 脚本来自[url]www.66rpg.com[/url],使用请保留此信息 # 作者:SailCat;升级:柳柳;最后升级日期:2006年4月30日 #====================================================================== class Bitmap unless $OK alias sailcat_draw_text draw_text def draw_text(p1, p2, p3 = 0, p4 = 3, p5 = nil, p6 = 0, p7 = 3, p8 = nil) case p1 when Numeric x = p1 y = p2 width = p3 height = p4 text = p5 align = p6 shadow_direction = p7 shadow_color = p8 if shadow_color.nil? shadow_color = Color.new(0, 0, 30, self.font.color.alpha * 1) end when Rect x = p1.x y = p1.y width = p1.width height = p1.height text = p2 align = p3 shadow_direction = p4 shadow_color = p5 if shadow_color.nil? shadow_color = Color.new(0, 0, 30, self.font.color.alpha * 1) end end color_temp = self.font.color.clone if shadow_direction != 0 self.font.color = shadow_color case shadow_direction when 1 sailcat_draw_text(x-1, y+1, width, height, text, align) when 3 sailcat_draw_text(x-1, y+1, width, height, text, align) sailcat_draw_text(x+1, y+1, width, height, text, align) sailcat_draw_text(x-1, y-1, width, height, text, align) sailcat_draw_text(x+1, y-1, width, height, text, align) sailcat_draw_text(x+1, y+0, width, height, text, align) sailcat_draw_text(x-1, y+0, width, height, text, align) sailcat_draw_text(x+0, y+1, width, height, text, align) sailcat_draw_text(x+0, y-1, width, height, text, align) sailcat_draw_text(x+2, y+0, width, height, text, align) sailcat_draw_text(x-2, y+0, width, height, text, align) sailcat_draw_text(x+0, y+2, width, height, text, align) sailcat_draw_text(x+0, y-2, width, height, text, align) when 7 sailcat_draw_text(x-1, y-1, width, height, text, align) when 9 sailcat_draw_text(x+1, y-1, width, height, text, align) end self.font.color = color_temp end $OK = true sailcat_draw_text(x, y, width, height, text, align) end end end
#======================================================================
# 脚本来自[url]www.66rpg.com[/url],使用请保留此信息
# 作者:SailCat;升级:柳柳;最后升级日期:2006年4月30日
#======================================================================
class Bitmap
unless $OK
alias sailcat_draw_text draw_text
def draw_text(p1, p2, p3 = 0, p4 = 3, p5 = nil, p6 = 0, p7 = 3, p8 = nil)
case p1
when Numeric
x = p1
y = p2
width = p3
height = p4
text = p5
align = p6
shadow_direction = p7
shadow_color = p8
if shadow_color.nil?
shadow_color = Color.new(0, 0, 30, self.font.color.alpha * 1)
end
when Rect
x = p1.x
y = p1.y
width = p1.width
height = p1.height
text = p2
align = p3
shadow_direction = p4
shadow_color = p5
if shadow_color.nil?
shadow_color = Color.new(0, 0, 30, self.font.color.alpha * 1)
end
end
color_temp = self.font.color.clone
if shadow_direction != 0
self.font.color = shadow_color
case shadow_direction
when 1
sailcat_draw_text(x-1, y+1, width, height, text, align)
when 3
sailcat_draw_text(x-1, y+1, width, height, text, align)
sailcat_draw_text(x+1, y+1, width, height, text, align)
sailcat_draw_text(x-1, y-1, width, height, text, align)
sailcat_draw_text(x+1, y-1, width, height, text, align)
sailcat_draw_text(x+1, y+0, width, height, text, align)
sailcat_draw_text(x-1, y+0, width, height, text, align)
sailcat_draw_text(x+0, y+1, width, height, text, align)
sailcat_draw_text(x+0, y-1, width, height, text, align)
sailcat_draw_text(x+2, y+0, width, height, text, align)
sailcat_draw_text(x-2, y+0, width, height, text, align)
sailcat_draw_text(x+0, y+2, width, height, text, align)
sailcat_draw_text(x+0, y-2, width, height, text, align)
when 7
sailcat_draw_text(x-1, y-1, width, height, text, align)
when 9
sailcat_draw_text(x+1, y-1, width, height, text, align)
end
self.font.color = color_temp
end
$OK = true
sailcat_draw_text(x, y, width, height, text, align)
end
end
end
|
|