查看: 2170|回复: 0

[已经过期] 关于横版战斗脚本出错问题

[复制链接]
梦石
0
星屑
702
在线时间
326 小时
注册时间
2013-5-31
回帖
67
发表于 2013-6-30 15:55:39 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
话说我的贴子不见了,大概是忘了格式,因为急用,所以我还是再发道。
出错见下面附件,这段脚本是这样的
#--------------------------------------------------------------------------
  # ● 背景画像のセッティング
  #--------------------------------------------------------------------------
  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

点评

贴全部脚本或者发工程,不然没人知道怎么回事。  发表于 2013-6-30 16:14
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部