mouse_x, mouse_y = Mouse.get_mouse_pos
if Mouse.press?(Mouse::LEFT)
if mouse_x > 0 and mouse_x < 320 and
mouse_y > 200 and mouse_y < 480
$game_temp.common_event_id = 1
end
end
确实用到了,可是他写的是“当鼠标点击指定的范围时方可调用公共事件1”,可“当鼠标停在那范围时调用公共事件”怎么写?请哪为大哥大姐详细说明
[LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~作者: ONEWateR 时间: 2009-1-16 19:14
mouse_x, mouse_y = Mouse.get_mouse_pos
if Mouse.press?(Mouse::LEFT)
if mouse_x > 0 and mouse_x < 320 and
mouse_y > 200 and mouse_y < 480
$game_temp.common_event_id = 1
end
end