Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi
This is my second plugin that I'm developing. The problem now is that based from the documentation
http://sdk.revmobmobileadnetwork.com/mobile_website.html
<script type="text/javascript"> var REVMOB_CONFIG = { id: "copy your RevMob Mobile Website ID here", disable_auto_fullscreen: true }; </script> <-- I always get "[RevMob] ReferenceError: REVMOB_CONFIG is not definedapiweb.revmob.com/assets/revmob.js:1 error" <script src="https://apiweb.revmob.com/assets/revmob.js" type="text/javascript"> </script> <-- I believed that the only way to do this is to load the js runtime which I already done. Am I correct ?[/code:31j75r26] Currently the only way to fix "REVMOB_CONFIG error" this is to put the var REVMOB_CONFIG.... in the index.html which I think is not really secure and even elegant. People can just rip your games and replace the id easily with their own. (at least I want to make it harder for people to do this) So how can I do this correctly ? Did I declare the variable in a wrong place ? Attached is the files for the plugin. It is almost done (90% ?) except the "Link" function. I think we can just do "Sprite" on touched "RevMob.openLink()" ? Anybody help me please.
Develop games in your browser. Powerful, performant & highly capable.
Try like this it is working but in my local it is hanging.
var REVMOB_CONFIG={ id:this.properties[0], disable_auto_fullscreen: true };