Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Itch IO - How do I make it use the keyboard?

j9907
Registered User
Quote
2018-10-05 06:14:25

After many tweaks to my project I got it to run on WebGL and on Itch.io. However, I can't get it to use the keyboard. if you press Space it will not make the character jump, but rather make the page scroll down! Any ideas?


niko
Moderator
Quote
2018-10-05 08:46:54

I guess itch.io embeds your game using an iframe, right?
If that's the problem, you should be able to fix this by opening your own .html file where the game started in, and right before the line which starts with
startCopperLichtFromFile

simply add a
window.focus();

then it should work.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact