I am making a game, I want to use spacebar to slow time and when we press again spacebar time should be normal. How do I make this thing happen.
Hello Zion,
I have attached an example I did for another forum member the other day for showing and hiding layers using the same key, you should be able to adapt it to do what you need <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
https://1drv.ms/u/s!Au_xHg0ueCl3wQVQVQShmJCgQBVh
Hope that helps.
Develop games in your browser. Powerful, performant & highly capable.
Thanks AM_Games