print or save in pdf?

  • #1, by jf-mWednesday, 25. August, 15:56 A month ago
    hi everybody!

    I made a search but didn't find an answer.
    I would like to print or save in pdf a scene.
    Is there a way to create a button with this function?

    Thanks!

    Newbie

    19 Posts


  • #2, by afrlmeThursday, 26. August, 15:44 A month ago
    Do you mean create a screenshot?

    Imperator

    7005 Posts

  • #3, by jf-mThursday, 26. August, 18:06 A month ago
    yes, create a screenshot and save it somewhere, or print it directly

    Newbie

    19 Posts

  • #4, by afrlmeThursday, 26. August, 20:41 A month ago
    here you go.


    Add this code inside of an execute a script action in one of the key actions (released), maybe the F12 key or something.
    -- save to "screenshots" folder as "screenshot_(date)_(time).png
    local time = os.date("%Y-%m-%d_%Hh-%Mm-%Ss")
    createScreenshot("screenshots/screenshot_" .. time .. ".png")
    1
    2
    3

    Quick note: screenshots folder needs to exist in the root folder of your game project/exported game project.

    Imperator

    7005 Posts

  • #5, by jf-mFriday, 27. August, 19:15 3 weeks ago
    one more time: thank you! smilesmile

    is there a way to change the final folder for a game online?
    i would like to save the screenshot on the gamer's computer for a online game.

    I promise i have bought a lua book, but time is missing. wink


    Newbie

    19 Posts

  • #6, by jf-mWednesday, 22. September, 19:41 14 hours ago
    I'm sorry to go back to this question, but i really need to know if there is a way for saving the png localy from an online game.
    I think your solution works for:
    - local game with a "screenshot" folder in the root folder
    - online game with the same condition, but in the online root folder.

    Is it possible to mix them? 
    - online game with a local screenshot folder?

    Thanks smile

    Newbie

    19 Posts

Write post