irpg Community
ถามการทำสคริปต์ เมื่อไม่กดคีย์ใดๆ - Printable Version

+- irpg Community (http://irpg.in.th)
+-- Forum: irpg Fabella RPG Maker Academia (http://irpg.in.th/forum-4.html)
+--- Forum: RPG Maker Engine School (http://irpg.in.th/forum-7.html)
+---- Forum: Scripting Academy (http://irpg.in.th/forum-12.html)
+---- Thread: ถามการทำสคริปต์ เมื่อไม่กดคีย์ใดๆ (/thread-2708.html)



ถามการทำสคริปต์ เมื่อไม่กดคีย์ใดๆ - hammer - 12-27-2015

ก็ประมาณว่า

if (ไม่กดคีย์ใดเลย)
$game_switches[0001]==true
else
$game_switches[0001]==false
end

ครับ ประมาณนี้ จะเขียนยังไงครับ

แล้วถ้าเป็นไม่กด คีย์ บางคีย์ อย่าง


if (ไม่กดคีย์ C )
$game_switches[0001]==true
else
$game_switches[0001]==false
end

ประมาณนี้