Can you get parameters from a querystring? #864
Replies: 3 comments 1 reply
-
Hey, I suppose you will be using the web export, else your question is not really making any sense. So you can read the querystring parameter (I think it's pure vanilla js) and do whatever treatment you want. If you have more technical questions on how to do stuff in the main.js, I strongly encourage you to post it in the inkjs project https://github.com/y-lohse/inkjs |
Beta Was this translation helpful? Give feedback.
-
Yes, I am using the web export. So, quick question, if I had a line to main.js and put a querystring parameter into a const, how do I get that value into a game variable, so I |
Beta Was this translation helpful? Give feedback.
-
I think I came up with a shortcut and don't need to go this way. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to read parameters from a querystring when your ink game is opened in a browser?
Alternatively, is there a way to run a block of javascript that will set an ink variable to a parameter from a querystring?
Beta Was this translation helpful? Give feedback.
All reactions