We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

“Once done do” after taking multiple screenshots

Home Forums Puzzles “Once done do” after taking multiple screenshots

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #57052
    Mariusz
    Customer

    Hi guys! In my configurator, the user can download the PDF with the configuration. In this PDF (created by using CyberFox plugin), I add a few screenshots, taken by a puzzle “take screenshot” and saved as variables. In general, the puzzle setup that you can see below works fine. But I am not happy that the actual PDF is generated after exactly 10 seconds (by using “after seconds” puzzle). I would like to fasten the process on fast devices, and ensure the proper amount of time for taking screenshots on slower devices.

    So I would like it to be generated after the last screenshot is saved as a variable. If I put the “generate PDF” puzzle into the last “tween camera” “when finished do” slot, then it reloads the application on iOS on reaching this point instead of generating PDF. Using the procedure puzzle to generate PDF there also didn’t work.

    Do you have any idea how can I make it work immediately after taking screenshots, and with no crushes on iOS?

    Attachments:
    You must be logged in to view attached files.
    #57059
    kdv
    Participant

    add a small delay before taking screenshots and the same delay before generating PDF in the last when finished do slot. 0.5 will be enough. It should work with no problems
    https://cdn.soft8soft.com/…/cyber_fox_pdf_generator/index.html

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #57067
    Mariusz
    Customer

    Thank you kdv77kdv, I did it. Unfortunately, with no effect. My procedure for this PDF generation is quite long. But it was no problem so far. Recently, I changed the camera changing mode. Before “tween camera” I’ve been using “set camera” with a time delay. But “set camera” puzzle doesn’t have a slot “on finished”, and sometimes, when the device was lagging, the camera was forced to change because of time delay before the screenshot was taken.

    With a “tween camera” puzzle, the screenshots are taken [usually] correctly. But I think this setup is a bit too ‘deep’ for iOS. Although I am not sure if my thinking is correct.

    #57069
    kdv
    Participant

    What is the resolution of your screenshots? Do you change the screen scale?
    I tested my demo in iOS with scale = window.devicePixelRatio and it worked properly…

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #57070
    Mariusz
    Customer

    I have the screen scale set to the “native screen scale” puzzle.

    #57071
    kdv
    Participant

    try to remove it and test again

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #57074
    Mariusz
    Customer

    It seems to work, thank you! :yahoo:

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.