How do I integrate a Javascript Library into my game?

Get help using Construct 2

Post » Tue Jun 06, 2017 4:39 pm

Hello,

I'm trying to make a Japanese typing game that doesn't require the user to have an IME installed. I found a lovely little Javascript library/plugin/not sure what to call it, named WanaKana that automatically converts what is typed by the user into one of the Japanese scripts. I would like to somehow integrate this into a Construct Text Input box but have no idea how to get started. Do I need to make a custom Text Input plugin? Any help on this would be really appreciated, or if you can point me towards some resources where I can learn what I need to know.

Here is the link to WanaKana's Github, scroll down and check out the "Demo Site" to see what it does.

WanaKana: https://github.com/WaniKani/WanaKana

Thanks again!
B
6
S
1
Posts: 4
Reputation: 910

Post » Tue Jun 06, 2017 5:46 pm

Maybe a behavior that target input elements specifically could do the trick ?

The API doesn't look that complicated, so it should be straightforward to wrap in a behavior.
B
67
S
28
G
24
Posts: 970
Reputation: 18,675


Return to How do I....?

Who is online

Users browsing this forum: imothep85, KTML5 and 9 guests