| 赞 | 3  | 
 
| VIP | 1324 | 
 
| 好人卡 | 17 | 
 
| 积分 | 10 | 
 
| 经验 | 61438 | 
 
| 最后登录 | 2024-6-19 | 
 
| 在线时间 | 937 小时 | 
 
 
 
 
 
Lv3.寻梦者 昨日的黄昏 
	- 梦石
 - 0 
 
        - 星屑
 - 1005 
 
        - 在线时间
 - 937 小时
 
        - 注册时间
 - 2006-11-5
 
        - 帖子
 - 4128
 
 
   
 
 | 
	
- class Scene_Map 
 
 -  alias old update 
 
 -  def update 
 
 -    @by = 32 #感应鼠标边缘的范围 
 
 -    @speed = 64 #移动速度 
 
 -    mx,my = Mouse.get_mouse_pos 
 
 -    move_r if mx>640-@by 
 
 -    move_l if mx<@by 
 
 -    move_u if my<@by 
 
 -    move_d if my>480-@by 
 
 -    old 
 
 -  end 
 
 -  def move_r 
 
 -    $game_map.scroll_right(@speed) 
 
 -  end   
 
 -  def move_l 
 
 -    $game_map.scroll_left(@speed) 
 
 -  end   
 
 -  def move_u 
 
 -    $game_map.scroll_up(@speed) 
 
 -  end   
 
 -  def move_d 
 
 -    $game_map.scroll_down(@speed) 
 
 -  end  
 
 - end
 
  复制代码 插入main之前试试看 
原帖传送门 http://www.66rpg.com/articles/4681 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |