clarkkentnicdao's Forum Posts

  • I just bought cordova unity plugin and i don't know how can i make it work. i am using intel xdk and i want to put it on android. anyone can help me?

  • > May I know what cordova plugin may i use.. I am working for this screenshot on android for how many days. and how to add it to my converting tool?

    > Thanks a lot for your reply everytime..

    >

    I don't know. I only said it might be required.

    Plugins in XDK are added as indicated in this tutorial's page.

    I'm afraid working on features for days is part of game development.

    Thanks a lot.. I hope i will figure this out and i will share it here quickly

  • You get an URI, then it is up to you to do something with it.

    You either download it using the Browser plugin.

    Or send it to an online server of your choice using AJAX.

    When you take the snapshot, it is just a line of text you have to do something with.

    When you mention Android, do you mean exported as a Cordova application or executed in a browser on Android ?

    The execution in browser will work as is. Exported as Cordova might require you to add some Cordova plugin to your converting tool.

    yup i exported it to apk using intel xdk 3400.. May I know what cordova plugin may i use.. I am working for this screenshot on android for how many days. and how to add it to my converting tool?

    Thanks a lot for your reply everytime..

  • It works. You use the system action, it takes your whole canvas as a screenshot and there is a "On canvas snapshot" scirra.com/manual/124/system-conditions system condition you can use to trigger actions when the snapshot is taken.

    And you have access to your screenshot as an URI using the scirra.com/manual/126/system-expressions system expression "CanvasSnapshot".

    Reading the description for all those in the manual do help.

    See scirra.com/forum/how-do-i-create-multiple-snapshots_t177844 this topic. Not exactly the same as what you want, but it shows snapshot in action.

    sadly screenshot didn't work on my android

  • It works. You use the system action, it takes your whole canvas as a screenshot and there is a "On canvas snapshot" scirra.com/manual/124/system-conditions system condition you can use to trigger actions when the snapshot is taken.

    And you have access to your screenshot as an URI using the scirra.com/manual/126/system-expressions system expression "CanvasSnapshot".

    Reading the description for all those in the manual do help.

    See scirra.com/forum/how-do-i-create-multiple-snapshots_t177844 this topic. Not exactly the same as what you want, but it shows snapshot in action.

    Thanks! I will look at it

  • I am waiting for this too..

  • You can take screenshots of the canvas using the scirra.com/manual/125/system-actions system action "Snapshot canvas".

    Otherwise, instead of actual images, you could save the position and animation frame of each sprite composing your robot (in a data structure like an scirra.com/manual/108/array array or something) and display it accordingly in your game.

    For that, I guess you should look into the scirra.com/manual/188/local-storage:2dm5d52p]local storage and existing examples on how to save/load the data, and create some [url=https://www.scirra.com/manual/149/function functions to help you saving and displaying the robot accordingly. > > Also no need to bump your topic after one hour. > Do researches on your own, and if in 24 hours there is nothing new, bump is authorized, not before. > I see.. Thanks.. I will try what you said. One question... Screenshots is working on mobile? If yes I humbly asking if you have capx or link for that? Last.. sorry if i bumped it...

  • clarkkentnicdao it seems like that as you say... I will try it tonight .Thanks clarkkentnicdao haddy22

    No worries

  • First, please excuse my English because I am not good at it

    I am creating a mobile game that look likes build your robot. But I don't know how to make "SAVE" the screenshot of your finished robot and how to make a gallery to view the screenshot of your finished robots.

    Thanks.

    Hoping for replies

  • > go to index.html then remove this part

    > <script>

    > // Issue a warning if trying to preview an exported project on disk.

    > (function(){

    > // Check for running exported on file protocol

    > if (window.location.protocol.substr(0, 4) === "file")

    > {

    > alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");

    > }

    > })();

    > </script>

    >

    > then SAVE. i hope i helped you

    >

    Just because you remove the notification doesn't mean that the game will work. It is the browsers own security that will proevent some features of the exported game from working, so removing the warning is not really the answer.

    An analogy would be getting an 'oil warning' light appearing in your car so you decide to remove the bulb. The problem still exists, but you've just removed the warning.

    ohh i see. so far my mobile games are working fine when even i remove that script

  • go to index.html then remove this part

    <script>

    // Issue a warning if trying to preview an exported project on disk.

    (function(){

    // Check for running exported on file protocol

    if (window.location.protocol.substr(0, 4) === "file")

    {

    alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");

    }

    })();

    </script>

    then SAVE. i hope i helped you

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • put the icon and splash screen on the folder where you have your index.html then re-open your settings in intel xdx then you're okay now

  • Go to index.html in intel xdk then look for this script lines

    <script>

    // Issue a warning if trying to preview an exported project on disk.

    (function(){

    // Check for running exported on file protocol

    if (window.location.protocol.substr(0, 4) === "file")

    {

    alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");

    }

    })();

    </script>

    Then delete it.

    i hope i helped you