赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 3200 |
最后登录 | 2015-10-28 |
在线时间 | 32 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 32 小时
- 注册时间
- 2005-11-14
- 帖子
- 85
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
再次发帖请求.....希望有人能帮帮忙......{/dk}
那个关于场景放大的问题,之前发的帖都没人回,于是我只好自己盲目地找.....配合翻译机最后还是被我找到了......
之前的情况是这样,背景图被放大了:
后来找到了这段脚本:
- #--------------------------------------------------------------------------
- # ● バトル背景の設定
- #--------------------------------------------------------------------------
- def make_battleback
- @battleback_name = $game_temp.battleback_name
- if @battleback_sprite.bitmap != nil
- @battleback_sprite.bitmap.dispose
- end
- @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
- if @battleback_sprite.bitmap.width == 640 and
- @battleback_sprite.bitmap.height == 320
- @battleback_sprite.src_rect.set(0, 0, 1280, 640)
- @base_zoom = 2.0
- @battleback_sprite.zoom_x = @base_zoom
- @battleback_sprite.zoom_y = @base_zoom
- @real_y = 4
- @battleback_sprite.x = 320
- @battleback_sprite.y = @real_y
- @battleback_sprite.ox = @battleback_sprite.bitmap.width / 2
- @battleback_sprite.oy = @battleback_sprite.bitmap.height / 4
- elsif @battleback_sprite.bitmap.width == 640 and
- @battleback_sprite.bitmap.height == 480
- @battleback_sprite.src_rect.set(0, 0, 960, 720)
- @base_zoom = 1.5
- @battleback_sprite.zoom_x = @base_zoom
- @battleback_sprite.zoom_y = @base_zoom
- @battleback_sprite.x = 320
- @battleback_sprite.y = 0
- @battleback_sprite.ox = @battleback_sprite.bitmap.width / 2
- @battleback_sprite.oy = @battleback_sprite.bitmap.height / 4
- else
- @battleback_sprite.src_rect.set(0, 0, @battleback_sprite.bitmap.width,
- @battleback_sprite.bitmap.height)
- @base_zoom = 1.0
- @battleback_sprite.zoom_x = @base_zoom
- @battleback_sprite.zoom_y = @base_zoom
- @battleback_sprite.x = 320
- @battleback_sprite.y = 0
- @battleback_sprite.ox = @battleback_sprite.bitmap.width / 2
- @battleback_sprite.oy = @battleback_sprite.bitmap.height / 4
- end
- end
复制代码
其中我把这段改了:
- if @battleback_sprite.bitmap.width == 640 and
- @battleback_sprite.bitmap.height == 320
- @battleback_sprite.src_rect.set(0, 0, 1280, 640)
- @base_zoom = 2.0
- @battleback_sprite.zoom_x = @base_zoom
- @battleback_sprite.zoom_y = @base_zoom
- @real_y = 4
- @battleback_sprite.x = 320
- @battleback_sprite.y = @real_y
- @battleback_sprite.ox = @battleback_sprite.bitmap.width / 2
- @battleback_sprite.oy = @battleback_sprite.bitmap.height / 4
复制代码
因为我的背景图是640X320,所以我把这段的放大率@base_zoom = 2.0改成了@base_zoom = 1.0
本以为这样就能完整显示背景了,可是改了以后发现背景向上移了......
麻烦会脚本的大大帮忙看看我改的那段里还有什么地方要修改?我不懂RUBY啊....... 版务信息:本贴由楼主自主结贴~ |
|