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

Project1

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

[已经过期] 这个脚本哪里有错误?

[复制链接]

Lv2.观梦者

梦石
0
星屑
445
在线时间
377 小时
注册时间
2012-11-5
帖子
267
跳转到指定楼层
1
发表于 2017-2-22 22:19:28 | 显示全部楼层 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
无法切换小地图
RUBY 代码复制
  1. # ■ Window_Map
  2. #==============================================================================
  3.  
  4. #显示小地图
  5. #==============================================================================
  6.  
  7. class Window_Map < Window_Base
  8.   #--------------------------------------------------------------------------
  9.   # ● 初始化窗口
  10.   #--------------------------------------------------------------------------
  11.   def initialize
  12.   super(0, 0, 160, 160)
  13.     self.contents = Bitmap.new(width - 32, height - 32)
  14.       @bmp = Bitmap.new("Graphics/Map/map" + $game_map.map_id.to_s)
  15.       refresh
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # ● 刷新
  19.   #--------------------------------------------------------------------------
  20.   def refresh
  21.     self.contents.clear
  22.     rect = Rect.new(0, 0, 128, 128)
  23.     self.contents.blt(0, 0, @bmp, rect, 160)
  24.   end
  25. end
  26.  
  27. def update
  28.     if $game_map.map_id != $game_temp.player_new_map_id
  29.        $game_temp.player_new_map_id = $game_map.map_id  
  30.       refresh
  31.     end
  32.    end
  33.  
  34.   #--------------------------------------------------------------------------

捕获.JPG (109.56 KB, 下载次数: 10)

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

本版积分规则

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

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

GMT+8, 2024-5-11 17:10

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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