cranberrygame's Forum Posts

  • MelVin

    You are welcome.

    If you need help, post

  • TheWyrm

    Phonegap FacebookPB needs to be documented finally and is not uploaded yet.

    Google Play Game Services native plugin was progressed 70% and paused

    becuase it will be better that scirra make his own plugin.

    Thanks

  • FredQ

    I tested screen capture plugin (cw: for crosswalk) and wroks.

    How about you?

    Other person said don't work.

    And

    Google Analytics plugin for Crosswalk will be possible.

    But later I have spare time.

  • fongka2

    Thanks for your donation very much.

    You are my savior, too.

  • mochiz

    PMed

    To. Everybody

    Added Phonegap NavigationBar plugin

  • tumira

    You are welcome

  • IntelRobert

    By your kind help, the problem was solved.

    System's snapshot canvas works.

    Thanks really very much!

    tumira

    Thanks, too

  • FredQ

    Happy news!

    Phonegap ScreenCaptureCW (for crosswalk) was completed by 's IntelRobert 's help.

    You can use ScreenCaptureCW + Share plugin on crosswalk for android.

  • GeometriX

    alvarop

    tumira

    DUTOIT

    Allchix

    rekjl

    MelVin

    bjadams

    ashwin2000

    vitorfgd

    FredQ

    arubishi

    This project was successfully completed by your interests and helps.

    Thank you very much until now!

    If you have no "Phonegap related plugins (+Crosswalk) (all plugins + free update) full package", I'll give it as a present.

    If you want, let me know your email address with PM.

    Sang Ki Kwon

    Cranberrygame

  • IntelRobert

    It seems that c2 does not use id="c2canvas" canvas in crosswalk for android.

    I think who knows the internal c2 can only know the way to capture main screen shot (main canvas).

    If you do so, I thanks for your help.

    tumira

    If not solved, then I'll move this to other category.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • tumira

    I did test, but it didn't work in crosswalk for andorid.

    Thanks for your reply

  • Ashley

    Hi, Ashley

    I'm making screen capture plugin.

    I made this code by IntelRobert 's help, but still can't capture screen (c2canvas canvas capture).

    By which canvas, can I take base64 string?

    I need your help.

    Thanks

    See the code below:

    //cranberrygame start
    	Acts.prototype.SaveScreenCaptureToImageFile = function ()
    	{		
    /*
    		//works <============
    		var c = document.createElement("canvas");
    		c.width = 150;
    		c.height = 75;
    		var ctx = c.getContext("2d");
    		ctx.fillStyle = "#FF0000";
    		ctx.fillRect(0,0,150,75);
    		var base64 = c.toDataURL();
    		var img = document.createElement("img");
    		img.src = base64;
    
    		//document.body.appendChild(img);
    		document.getElementById("c2canvas").parentNode.insertBefore(img, document.getElementById("c2canvas"));
    */
    
    		//works in phonegap but don't work in crosswalk android: black screen capture <============
    		var c = document.getElementById("c2canvas");
    		var base64 = c.toDataURL();
    		var img = document.createElement("img");
    		img.src = base64;
    
    		//document.body.appendChild(img);
    		document.getElementById("c2canvas").parentNode.insertBefore(img, document.getElementById("c2canvas"));
    	};
    //cranberrygame end
    [/code:3r1ietn5]
  • iriane

    File plugin is free, now.

    So you just need for me to add the function you want.

  • Raiper341

    DId you use this plugin? ==>

    If so, try latest version.

    Go to there, use latest native plugin url (com.cranberrygame.phonegap.plugin.ad.admob@1.0.11) and latest c2 plugin.

  • FredQ

    I added permissions but failed.

    I looked into your link (screen capture), but it captures sub canvas.

    Phonegap ScreenCapture also capture sub canvas (sprite) well.

    It seems that crossalk's native view is different from android native view.

    I questioned about this to IntelRobert. :

    Let's wait for his reply.

    As for Google Analytics,

    It will be nice.

    I will consider if have time.

    Thanks