赞 | 0 |
VIP | 0 |
好人卡 | 27 |
积分 | 1 |
经验 | 21216 |
最后登录 | 2017-9-15 |
在线时间 | 269 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 269 小时
- 注册时间
- 2014-5-9
- 帖子
- 127

|
物品栏的背景在SceneManager脚本中第82~86行- def self.snapshot_for_background
- @background_bitmap.dispose if @background_bitmap
- @background_bitmap = Graphics.snap_to_bitmap
- @background_bitmap.blur
- end
复制代码 其中@background_bitmap.blur是使截图模糊的语句,如果不需要模糊的话删掉这句代码就可以了。
后一个问题,方法有很多,例如你可以这么写代码:- @background_sprite2.bitmap = Cache.picture("Bag#{$game_variables[1]}")
复制代码 也可以这么写代码:- if $game_variables[1] == 1
- @background_sprite2.bitmap = Cache.picture("Bag2")
- else
- @background_sprite2.bitmap = Cache.picture("Bag")
- end
复制代码 |
评分
-
查看全部评分
|