设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1282|回复: 1
打印 上一主题 下一主题

帮忙在我这个教程的发布页里面加个说明,谢谢

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
82 小时
注册时间
2006-1-28
帖子
996
跳转到指定楼层
1
发表于 2008-10-5 18:34:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
http://rpg.blue/web/htm/news842.htm
范例一里面描绘EXP有点问题,等级太高会报错,解决办法是:
window_Base下的EXPメーター の描画,改成以下内容


  1.   #--------------------------------------------------------------------------
  2.   # ● EXPメーター の描画
  3.   #--------------------------------------------------------------------------
  4.   def EXP(actor,x,y,w=96)
  5.     if actor.next_exp != 0
  6.   self.contents.fill_rect(x-2,y+20,w+4,11,Color.new(255,255,255,255))
  7.   self.contents.fill_rect(x-1,y+21,w+2,9,Color.new(0,0,0,255))
  8.     w1 = w * actor.now_exp/actor.next_exp
  9.   self.contents.fill_rect(x-1,y+21,w1,1,Color.new(0,120,210,255))
  10.   self.contents.fill_rect(x-1,y+22,w1,1,Color.new(0,120,230,255))
  11.   self.contents.fill_rect(x-1,y+23,w1,1,Color.new(0,120,250,255))
  12.   self.contents.fill_rect(x-1,y+24,w1,1,Color.new(0,120,270,255))
  13.   self.contents.fill_rect(x-1,y+25,w1,1,Color.new(0,125,290,255))
  14.   self.contents.fill_rect(x-1,y+26,w1,1,Color.new(0,120,270,255))
  15.   self.contents.fill_rect(x-1,y+27,w1,1,Color.new(0,120,250,255))
  16.   self.contents.fill_rect(x-1,y+28,w1,1,Color.new(0,120,230,255))
  17.   self.contents.fill_rect(x-1,y+29,w1,1,Color.new(0,120,210,255))
  18. else
  19.   self.contents.fill_rect(x-2,y+20,w+4,11,Color.new(255,255,255,255))
  20.   self.contents.fill_rect(x-1,y+21,w+2,9,Color.new(0,0,0,255))
  21.   self.contents.fill_rect(x-1,y+21,w+2,1,Color.new(0,120,210,255))
  22.   self.contents.fill_rect(x-1,y+22,w+2,1,Color.new(0,120,230,255))
  23.   self.contents.fill_rect(x-1,y+23,w+2,1,Color.new(0,120,250,255))
  24.   self.contents.fill_rect(x-1,y+24,w+2,1,Color.new(0,120,270,255))
  25.   self.contents.fill_rect(x-1,y+25,w+2,1,Color.new(0,125,290,255))
  26.   self.contents.fill_rect(x-1,y+26,w+2,1,Color.new(0,120,270,255))
  27.   self.contents.fill_rect(x-1,y+27,w+2,1,Color.new(0,120,250,255))
  28.   self.contents.fill_rect(x-1,y+28,w+2,1,Color.new(0,120,230,255))
  29.   self.contents.fill_rect(x-1,y+29,w+2,1,Color.new(0,120,210,255))
  30.   end
  31. end
复制代码
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-2-20
帖子
77
2
发表于 2008-10-5 18:39:33 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-7-25 22:31

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表