LS正解。不过需要LZ说下具体是怎么个显示法,如果要是一直显示在屏幕上,就设置Sprite就好。
方法是在Scene_Battle1中的main最前面加入
@variable_sprite = Sprite.new @variable_sprite.x = 0 # 调坐标 @variable_sprite.y = 0 # 调坐标 @variable_sprite.z = 999 @variable_sprite.bitmap = Bitmap.new(120, 32) @variable_sprite.bitmap.draw_text(4, 0, 120, 32, $game_variables[8].to_s)
@variable_sprite = Sprite.new
@variable_sprite.x = 0 # 调坐标
@variable_sprite.y = 0 # 调坐标
@variable_sprite.z = 999
@variable_sprite.bitmap = Bitmap.new(120, 32)
@variable_sprite.bitmap.draw_text(4, 0, 120, 32, $game_variables[8].to_s)
在最后dispose的地方加入@variable_sprite.dispose即可。 |