Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Just tried to make a bit of code that would trigger when Alt is pressed, but the engine doesn't seem to let me do so. Is this by design or is it a bug ?
Have you tried with "On touched"?
Develop games in your browser. Powerful, performant & highly capable.
On Touched is not a event that the Keyboard object can do.
Sorry I wanted say: on key released...
you could try this, same problem and this got me around it...
In the window where you select which key to use Hold in CTRL then press ALT, it'll goto CTRL first then it should change to ALT for you
Ometheu : That did the trick, thanks !
No worries, glad it helped
Some care might be needed in using alt with (some ?) web browsers.
when I tried something like
when alt key is down ..do something
then it only appeared to work every other press. (No problem in node webkit but chrome didn't like it)
Yeah, It's not really good practice
Alt key is generally reserved for program functions and the sort i believe, I wouldn't use it for anything public, plus I think on a mac in nodekit it does some weird stuff, so does the Ctrl key aswell I think.
I'm intending to only use the Alt + (Letter) for a the PC export function. [:)]
Thanks for the hint with ctrl+alt to get alt working —
But it sounds like a bug that it does not work otherwise. Maybe Ashley could take a look at it?