Project1
标题:
如何让某个变量的数值一直显示在左下角?
[打印本页]
作者:
snowcmpie
时间:
2014-8-8 12:58
标题:
如何让某个变量的数值一直显示在左下角?
或者让金币数量去掉背景框显示在左下角?
作者:
喵呜喵5
时间:
2014-8-8 13:23
https://rpg.blue/home.php?mod=sp ... o=blog&id=12023
作者:
VIPArcher
时间:
2014-8-8 15:39
class Spriteset_Map
alias create_shadow_20140808 create_shadow
def create_shadow
create_shadow_20140808
@mapinfo_sprite = Sprite.new
@mapinfo_sprite.bitmap = Bitmap.new(128,24)
@mapinfo_sprite.bitmap.font.size = 20
@mapinfo_sprite.x = 418
@mapinfo_sprite.y = 384
end
alias update_shadow_20140808 update_shadow
def update_shadow
update_shadow_20140808
@mapinfo_sprite.visible = $game_switches[23]
if @mapinfo_to_draw != mapinfo_to_draw
@mapinfo_to_draw = mapinfo_to_draw
b = @mapinfo_sprite.bitmap
b.clear
b.draw_text(- 48,2,b.width,20,$game_party.gold,2)
b.draw_text(0,2,b.width,20,$data_system.currency_unit,2)
end
end
alias dispose_shadow_20140808 dispose_shadow
def dispose_shadow
dispose_shadow_20140808
@mapinfo_sprite.bitmap.dispose
@mapinfo_sprite.dispose
end
# 啊,新技能Get
def mapinfo_to_draw
$game_party.gold
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1