スクリプト/指定した範囲内をクリックしているか判定する
最終投稿者:
ティラミス
更新:2014/08/28 09:54:17

< 開始スクリプト >
< 使用例 >
更新履歴
8/21:開始スクリプトを短縮
ツイート
#第1引数は左端のx座標 第2引数は右端のx座標 第3引数は上側のy座標 第4引数は下側のy座標 def Mouse_domain(a,b,c,d) if hasInput() takeInput() get_point = getMousePosition() if isMouseDown() if a <= get_point[0] && get_point[0] <= b && c <= get_point[1] && get_point[1] <= d h = true else h = false end end end return h end
< 使用例 >
startInput() loop = true while loop if Mouse_domain(1,800,1,300)#上半分をクリックするとtrueを返す loop = false end end
更新履歴
8/21:開始スクリプトを短縮
コメントする
コメントするには、ログインする必要があります。
コメント一覧

endが2つ足りないですよ~

足りてますよ?

あっw

ほんとだ