How do I take a screenshot of a particular layer?

0 favourites
  • 15 posts
From the Asset Store
You can upload screenshots and photos to your server very easily.
  • Hi everyone,

    In my game I have a camera viewfinder to see what you're shooting.

    When a user takes a picture, I want just the canvas - specifically a scenery layer... but NONE of the camera viewfinder layer to be in the screenshot.

    Any ideas how to do this?

    Or to take a screenshot of a particular layer NOT everything on screen at that moment?

    LMK and thank you!

  • I think the best option it to set everything at "GUI" layer invisible long enough to take a screenshot.

    *You can make like an old camera affect, like a flash to disguise and make it look better than just a needed mechanic for things to work.

    (sry english is not my native language, I hope I was clear)

  • There is an amazing example in the example browser page called TAKING SCREENSHOTS :) (For some reason I cannot copy the direct link to it)

    On the example project file you will be able to take a screenshot, save it, compy and share it. It´s super clear and easy to follow.

    This file will help you with screenshots better than any answer I can post

    Wish you good luck!

  • thanks so much both you guys.

    yes i have seen the example project! i used that as a reference - but what it doesn't do is help you specific a particular layer to take a screenshot of, or how to hide layers in the screenshot.

    i will try the suggestion of a quick flash effect to hide layers... good idea.

    ps. do either of you know how i might create a simple viewer in game that lets you slide through different screenshots the player has taken?

    my post on this is here

    construct.net/en/forum/construct-3/how-do-i-8/create-screenshot-viewer-in-178528

  • About the scrennshots slideshow you can use the system expression CanvasExpression as URL to make a sprite load it and set something like 10 blank default frames, as you save screenshots you change the frame and save it. (I think it might work, but i didn't test it out)

  • thanks megamente!

    that's what i have set up in my test file:

    drive.google.com/file/d/1r3QY2UvJGiKgffoaFCAxZU9ttrY9-ixe/view

    but it still doesn't seem to work. :(

    if you / anywone could take a look and let me know how i can make it work??

  • I think this right here might work:

    drive.google.com/file/d/1aTtDFcxu0CXAziijWOtAp-3MgvGowfTL/view

  • wow megamente thank you so much!

    can i ask you a couple questions as a i study this?

    - how can you set the max number of screenshots. i tried adjusting 10 to 20 o 30, but it didn't seem to work.

    .

    .

    - why is the middle code section disabled? if it is disabled then the arrow keys do not work to show you the screenshots.

    .

    .

    - is is possible even if you are looking at eg.screenshot 4, but take another screenshot... can we ensure the newest screenshot is ALWAYS still added to the end? (so it does not mess up the order)

    .

    .

    - is there a way to do it so if you have reached the last "screenshot slot" it either says no more, sorry, or it resets and copies new screenshots from the beginning?

    .

    .

    - if we want to add a download/copy button (like in the construct take screenshot example project) is this just a case of an event like "whichever screenshot is current being shown - download this one"?

    .

    .

    thank you som much this is really helpful in trying to understand how it work!!

    :)

  • Try this, I wrote at the event comments...

    drive.google.com/file/d/1aTtDFcxu0CXAziijWOtAp-3MgvGowfTL/view

  • Hello again!

    thank you so much - this is the same file you linked to in your first post is it not?

    yes i saw those comments, but i still wondered on how to achieve some of the above.

    again , i appreciate your help - let me know if you can help me understand any of the above questions.

    :)

  • I think the link have changed, I saved in the same drive account... Is the project the same as before? Tell, If so, I will try to save and upload again...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hello my friend,

    yes it is still showing the same file unfortunately.

    do you think you can kindly upload to a new folder so i can see it?

    thank you so much again! i appreciate it!

  • I changed the file name, see if it works...

    *I really just did small changes compared to the first one.

    drive.google.com/file/d/1UYUDru45RBF-wWRmykvwAZn8iOJDndzn/view

  • thank you so much! this helped to see where to set the matrix width.

    do you know how i can:

    - even if i am looking at screenshot 5, but there are currently 8 screenshots, if i take a new screenshot that it gets added to the end, not overwrite from where i currently am viewing?

    - is there a way to not always see th "empty frame 10" sign?

    - and is there a way where if you are at at the max screenshot e.g. ten, if you keep taking sceenshots then it starts to overwrite from the start?

  • Yes, It does, It's the disabled events in the project I sent you, I wrote in the comments describing almost everything you have to do to change it.

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