Project1

标题: 一个描绘能力值的脚本语句的问题 [打印本页]

作者: 布里蓝    时间: 2013-9-24 19:36
标题: 一个描绘能力值的脚本语句的问题
↓我脚本里是这样写的
RUBY 代码复制
  1. def draw_parameters(x, y)
  2.         draw_actor_param(@actor, x, y + line_height * 0, 0)
  3.         draw_actor_param(@actor, x, y + line_height * 1, 1)
  4.         draw_actor_param(@actor, x, y + line_height * 2, 2)
  5.         draw_actor_param(@actor, x, y + line_height * 3, 3)
  6.         draw_actor_param(@actor, x, y + line_height * 4, 4)
  7.         draw_actor_param(@actor, x, y + line_height * 5, 5)
  8.         draw_actor_param(@actor, x, y + line_height * 6, 6)
  9.   end


然后实际效果的这样的。游戏里用不到“魔攻”,想去掉,求问应该怎么改?

作者: 喵呜喵5    时间: 2013-9-24 19:48
第五行,line_height * 4那行删掉试试看
作者: 布里蓝    时间: 2013-9-24 20:11
喵呜喵5 发表于 2013-9-24 19:48
第五行,line_height * 4那行删掉试试看


试过了,结果是第四行空了出来,魔攻和后面几项从第五行开始排列
作者: xmheart    时间: 2013-9-24 20:29
def draw_parameters(x, y)
        draw_actor_param(@actor, x, y + line_height * 0, 0)
        draw_actor_param(@actor, x, y + line_height * 1, 1)
        draw_actor_param(@actor, x, y + line_height * 2, 2)
        draw_actor_param(@actor, x, y + line_height * 3, 3)
        draw_actor_param(@actor, x, y + line_height * 4, 5)
        draw_actor_param(@actor, x, y + line_height * 5, 6)
  end

试试




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1