Copy link to clipboard
Copied
var _this = this;
_this.gotoPlayBtn.on('click', function()
{
_this.gotoAndPlay(216);
});
window.addEventListener("keydown", function(e)
{
if (e.code === "Space")
_this.gotoAndPlay(216);
});
I tried to use "Space" and "Enter" key. They worked well.
But I wonder why other keys(ex: p key, s key , alt key, ctrl key and etc) except Space and Enter key don't work.
How can I use other keys(ex: p key, s key , alt key, ctrl key and etc) except Space?
Thank you.
I came to know the way.
"KeyP" or "KeyS" works well.
Copy link to clipboard
Copied
I came to know the way.
"KeyP" or "KeyS" works well.