Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem









Checking for a key-press is simple enough (as seen in this tutorial), but checking for when a key is released is a bit more involved, so the method I show is one way I might do it. It could be used in several ways, depending on what the Developer wants to have happen;
For example, maybe holding down a key for couple of seconds might "charge up" a spell or for a power-attack (for example, with a bit more creative eventing a power-bar could be shown), or maybe the Player is trying to bash a door or a chest, or perhaps there's a type of puzzle or perhaps a "slider" bar in which the Player needs to perhaps press a key to start an action and then try to release the key at the right moment for a better chance of success at doing an action. I imagine it can be used in many different ways.