hassiba's Forum Posts

  • cranberrygame

    Thanks a lot for the amazing plugin. I have already listed 10 of them to be used in my current game.

    the only one that I need that does not support crosswalk which "Rate" plugin. do you have any plans to support it in the near future?

    Thanks

  • > whats the link please?

    >

    Hi, my url from original post was removed:(

    You can check my folio here shutterstock.com/g/Gamegfx/sets

    Hi Gamegfx

    I would love to buy all your sprites but not from shutterstock.com!

    could you sell them through crestock.com, it is similar to shutterstock but the royalty free license is more flexible.

    here is why:

    for a standard license which is the cheapest and most affordable. shutterstock standard license terms allows the usage of images on mobile games/apps for up to 250,000 downloads, and then you must purchase an extended license which is like 50$ per image.

    on the other hand, crestock offers unlimited downloads for mobile apps/games.

    in all cases, I suggest whoever is going to buy through these companies to read carefully their license terms, I spent a whole weekend emailing and chatting with sales/support with different companies to make sure I am complying with their license rules. at the end, I decided to go with crestock but it was not the best in terms of content to tell you the truth, shutterstock is much better! but extended license was not an option for me.

  • you are awesome

    this makes it much easier for me to port logic algorithm to construct 2 naively

  • thanks, it is working now

  • renamed from Square Board to Grid

    Could you please help me

    I am not able to open my project any more.

    it says:

    "The project you are opening uses addons that are not installed

    plugin 'Square Board" by cranberry

    Please install the missing plugin, behavior or effect and try re-opening the project"

  • Hi

    Does anyone know if the plugin works on Cordova, or does it have to be Cocoonjs?

  • Hi

    Does the plugin work with Cordova?

    I found a github project that provides a plugin for Flurry on Cordova

    from this thread, I guess your plugin only works on Cocoonjs... right?

  • some apps make a pop up window with few option (no thanks, remind me later, go now)

    correct me if I am wrong, you have no way of telling if the user did rate after clicking on the button.

    so you just flag in the app that he visited the link and then stop bugging him again

  • having it as a behavior is a good idea, actually if you think about it, it does not have to be a canvas extension only.

    if I am not mistaken "Sprites" can also benefit from it as they are made of canvases as well.

  • Hi guys

    I have a project where I need to save the canvas screenshot to mobile photo gallery

    The browser plugin with its example from C2 only worked on PC browsers but not on android. after 20+ hours of research I managed to do it.

    apparently, there is a third party Cordova plugin for this purpose, it is called "Canvas2ImagePlugin"

    I am not an expert in programming, let alone writing plugins from scratch. so I edited the "Canvas" plugin from R0J0hound to test it and it WORKED.

    Here is what I did:

    1) add the following in Canvas "edittime.js"

    AddAction(44, 0, "Canvas2Image", "Canvas", "Canvas2Image", "Canvas2Image", "Canvas2Image");

    2) add the following in Canvas "runtime.js"

    acts.Canvas2Image= function ()

    {

    var imageData = this.canvas.toDataURL().replace(/data:image\/png;base64,/,'');

    cordova.exec(null, null, "Canvas2ImagePlugin","saveImageDataToLibrary",[imageData]);

    };

    3) create a new C2 project, drop a canvas, color it red, create a button and on the even sheet, button on clicked => Canvas2Image

    note: running the project on PC will not save the file for you, actually it will give you an error because it does not understand cordova.exec.

    4) on Intel XDK, you need to add the plugin and enable few permissions:

    4.1) Add Canvas2ImagePlugin:

    from Cordova Setting, go to Third Party Plugins

    click on "get plugin from the web" and fill in the following:

    name=: Canvas2ImagePlugin

    Plugin ID=: org.devgeeks.Canvas2ImagePlugin

    Repro URL=:

    (I do not have previllage to post URLs on this forum yet, maybe someone can do that for me, it is on github under /devgeeks/Canvas2ImagePlugin.git)

    4.2) enable external storage read/write permission in order to be able to access the photo gallery:

    Click on permission -> Android-Crosswalk

    in add Permission text field add the following (submit after each enetry):

    READ_EXTERNAL_STORAGE

    WRITE_EXTERNAL_STORAGE

    note: I am not sure if I need read access, but I added it anyway.

    we are done, now just export the project and build it

    now run the app on your mobile and click the button. go and check your gallery and you will find a sweet red image sitting there

    hope you guys find this helpful.

  • I finally did it

    check my other thread: forum/plugin-canvas2imageplaugin_t116018

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Any luck with saving snapshots to file on android mobile.

    the example provided in C2 works on PC but not on my mobile (crosswalk)

    do I have to enable any permissions on Intel XDK?

    I searched this and it seems that I do not need to add any permission for saving to internal SD. so this should not be an issue.

    EDIT1:

    I tried enabling the following permissions on intel XDK but it did not work

    READ_EXTERNAL_STORAGE

    WRITE_EXTERNAL_STORAGE

    then I tried enabling all crosswalk plugins, again did not work

    so the question remains, why the browser plugin is not able to save snapshots on mobile devices?

    EDIT2:

    apparently, cordova does not support downloading files/images directly. but there is a plugin for this here:

    in Intel XDK, Third party plugin -> get plugin from web

    plugin name = "canvas2imageplugin"

    plugin ID = "org.devgeeks.canvas2imageplugin"

    tick checkbox: Plugin is located in the Apache Cordova Plugins Registry

    we just need an expert on this forum to make a construct 2 plugin to enable it. anyone?