Project1
标题:
关于横版战斗脚本出错问题
[打印本页]
作者:
橙光
时间:
2013-6-30 15:55
标题:
关于横版战斗脚本出错问题
话说我的贴子不见了,大概是忘了格式,因为急用,所以我还是再发道。
出错见下面附件,这段脚本是这样的
#--------------------------------------------------------------------------
# ● 背景画像のセッティング
#--------------------------------------------------------------------------
def set_graphics(new_bitmap)
self.bitmap = new_bitmap
@base_x = (self.bitmap.width * @zoom_x - Graphics.width) / 2 + @adjust_position[0]
@base_y = (self.bitmap.height * @zoom_y - Graphics.height) / 2 + @adjust_position[1]
# 限界座標を取得
max_top = 0
max_bottom = self.bitmap.height * @zoom_y - Graphics.height
max_left = 0
max_right = self.bitmap.width * @zoom_x - Graphics.width
exist = true
exist = false if self.bitmap.height == 32 && self.bitmap.width == 32
$sv_camera.setting(@index, [max_top, max_bottom, max_left, max_right, @base_x, @base_y,exist])
end
这次格式没错吧…………
QQ截图20130630142435.png
(7.65 KB, 下载次数: 20)
下载附件
保存到相册
2013-6-30 15:53 上传
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1