How do I save just a part of the canvas as an image?

0 favourites
  • 6 posts
From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • I'm having a little trouble implementing this plugin: plugin-c2i-canvas-base64-screenshot-to-image_t68493

    I want the user to be able to save out an image that is saved from a specific part of the canvas, rather than just screenshotting and downloading the entire canvas.

    Capx is here:

    Live demo is here:

    First click 'use webcam', then hit the 'snap' button to capture your face in the frame.

    Then hit save canvas, which supposedly saves a screenshot between points 1 and 2 (marked on live demo).

    Then hit show image, which is supposed to load the resultant screenshot in a new tab, for saving.

    Event sheet is below:

    Pretty sure I'm doing something wrong, but I've tried many variations and am having trouble figuring out what <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad"> any help would be appreciated to shed some light on this. Thank you.

  • Update to add some extra information:

    What currently happens upon clicking save is a new tab is opened, and a "Not Found. The requested document was not found on this server." error occurs.

    This would lead me to believe that something is going wrong at the saving stage, but I can't quite figure out what.

    Where is the .png being saved? This is something that wasn't clear to me when I followed the original example.

  • Did you ever figure this out? Seems like you would have to specify in your events sheet a place to save the .png

    Also, try saving your project as a single file & uploading that to dropbox.

  • miketv I never did figure this out, no...

    I couldn't find a place to specify where to save the .png; this seems to be the problem? I'm back on investigating this stuff today, so I'll update if I get any further.

    As a single file? Is that an export setting somewhere?

  • When you go to save your game: click on the "File" gear at the top left of the window, scroll down to "save as single file..." and that's where you get your .capx (which can then be uploaded to dropbox)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • this may be of interest for you, it is not using the same plugin however.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)