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

Project1

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

如何把菜单的行走图,换成头象

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
12 小时
注册时间
2007-12-16
帖子
33
跳转到指定楼层
1
发表于 2008-4-29 00:12:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
高手教我,如何把菜单里的行走图,换头象,最好是把状态栏里的也换成自已的图片

Lv1.梦旅人

幻想

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-23
帖子
1016
2
发表于 2008-4-29 01:39:20 | 只看该作者
去下个66RPG整合系统就可以了

这个即是大富翁的Window_MenuStatus脚本
  1. #==============================================================================
  2. # ■ Window_MenuStatus
  3. #------------------------------------------------------------------------------
  4. #  显示菜单画面和同伴状态的窗口。
  5. #==============================================================================

  6. class Window_MenuStatus < Window_Selectable
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化目标
  9.   #--------------------------------------------------------------------------
  10.   def initialize
  11.     super(0, 0, 480, 480)
  12.     self.contents = Bitmap.new(width - 32, height - 32)
  13.     refresh
  14.     self.active = false
  15.     self.index = -1
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # ● 刷新
  19.   #--------------------------------------------------------------------------
  20.   def refresh
  21.     self.contents.clear
  22.     @item_max = $game_party.actors.size
  23.     for i in 0...$game_party.actors.size
  24.       x = 108
  25.       y = i * 116
  26.       actor = $game_party.actors[i]
  27.       testname = actor.battler_name+"_f.png"
  28.       if $加密 == true
  29.         bitmap=Bitmap.new("Graphics/battlers/#{testname}")
  30.         src_rect = Rect.new(0, 0, 100, 100) #——可自己调整大小
  31.         self.contents.blt(0, y, bitmap, src_rect)
  32.         draw_actor_name(actor, x, y)
  33.         draw_actor_class(actor, x + 200, y)
  34.         draw_actor_level(actor, x, y + 32)
  35.         draw_actor_state(actor, x + 90, y + 32)
  36.         draw_actor_exp(actor, x, y + 64,180)
  37.         draw_actor_hp(actor, x + 200, y + 32)
  38.         draw_actor_sp(actor, x + 200, y + 64)
  39.       else         
  40.         if FileTest.exist?("Graphics/battlers/#{testname}")
  41.           bitmap=Bitmap.new("Graphics/battlers/#{testname}")
  42.           src_rect = Rect.new(0, 0, 100, 100) #——可自己调整大小
  43.           self.contents.blt(0, y, bitmap, src_rect)
  44.         else
  45.           draw_actor_graphic(actor, x - 60, y + 80)
  46.         end
  47.         draw_actor_name(actor, x, y)
  48.         draw_actor_class(actor, x + 200, y)
  49.         draw_actor_level(actor, x, y + 32)
  50.         draw_actor_state(actor, x + 90, y + 32)
  51.         draw_actor_exp(actor, x, y + 64,180)
  52.         draw_actor_hp(actor, x + 200, y + 32)
  53.         draw_actor_sp(actor, x + 200, y + 64)
  54.       end
  55.     end
  56.   end
  57.   #--------------------------------------------------------------------------
  58.   # ● 刷新光标矩形
  59.   #--------------------------------------------------------------------------
  60.   def update_cursor_rect
  61.     if @index < 0
  62.       self.cursor_rect.empty
  63.     else
  64.       self.cursor_rect.set(0, @index * 116, self.width - 32, 96)
  65.     end
  66.   end
  67. end
复制代码

图片存放在Graphics/battlers文件夹···文件名是战斗图名字加上 _f.png
[url=http://rpg.blue/upload_program/d/菜鸟飞呀飞_love_111006892.jpg]http://rpg.blue/upload_program/d/菜鸟飞呀飞_love_111006892.jpg[/url][FLY][url=http://rpg.blue/upload_program/d/菜鸟飞呀飞_yz_tb_111008420.png]http://rpg.blue/upload_program/d/菜鸟飞呀飞_yz_tb_111008420.png[/url][/FLY][url=http://rpg.blue/upload_program/d/菜鸟飞呀飞_yzs_111008459.png]http://rpg.blue/upload_program/d/菜鸟飞呀飞_yzs_111008459.png[/url]
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-4-29
帖子
7
3
发表于 2008-4-29 22:59:15 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-7-23 00:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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