| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 1 |  
| 经验 | 1030 |  
| 最后登录 | 2012-11-1 |  
| 在线时间 | 32 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间32 小时注册时间2012-4-29帖子29 | 
| 
本帖最后由 lingongzi 于 2012-8-1 09:01 编辑
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 # ● カメラ移動
 #--------------------------------------------------------------------------
 def move(target_x, target_y, zoom, time, screen = true)
 # 戦闘背景以上のサイズまでズームアウトしないよう調整
 @target_zoom = [zoom * 0.01, @max_zoom_out * 0.01].max
 target_x *= -1 if screen && @mirror
 # ズーム分の中心座標補正
 if screen && @target_zoom != 1
 target_x = target_x + @center_x
 target_y = target_y + @center_y
 end
 adjust_x = @center_x * (@target_zoom - 1) / (@target_zoom ** 2 - @target_zoom)
 adjust_y = @center_y * (@target_zoom - 1) / (@target_zoom ** 2 - @target_zoom)
 adjust_x = 0 if adjust_x.nan?
 adjust_y = 0 if adjust_y.nan?
 adjust_x = @center_x if !screen && adjust_x == 0
 adjust_y = @center_y if !screen && adjust_y == 0
 @target_x = target_x - adjust_x.to_i
 @target_y = target_y - adjust_y.to_i
 @target_zoom = (@target_zoom * 1000).to_i
 @zoom = @zoom.to_i
 limit_test
 # 時間0の場合は即実行
 return @time = time.abs if time != 0
 @time = 1
 update
 end
 #--------------------------------------------------------------------------
 这个里面的
 @target_zoom = [zoom * 0.01, @max_zoom_out * 0.01].max
 
 提示出现问题
 
   | 
 |