Project1
标题:
在某区域内取消点击鼠标行走,谢谢
[打印本页]
作者:
616548465
时间:
2011-6-7 13:23
提示:
作者被禁止或删除 内容自动屏蔽
作者:
沙漠点灰
时间:
2011-6-7 14:06
lz没放工程...不知道什么时代的鼠标脚本....
lz按按F11,应该有个
完整鼠标系统
,第573行是不是
#初始化
,把它改成
if $game_rect
return if mouse_x>=$game_rect.x and mouse_x<$game_rect.x+$game_rect.width and
mouse_y>=$game_rect.y and mouse_y<$game_rect.y+$game_rect.height
end
复制代码
然后在脚本最顶方,写上
$game_rect = Rect.new(x,y,width,height)
复制代码
x是矩形坐上角x坐标,y就是其y坐标,
width是矩形宽.height是矩形高,在这个范围内的鼠标点击将被和谐掉
作者:
616548465
时间:
2011-6-7 16:25
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1