Save load page on top of game

  • #1, z adventure4lifeSaturday, 24. June 2017, 09:27 hodinky 7 years ago
    Hi guys,
    I am using VS 4.2.5  and I want to show page of save-load game on top of the current running scene.

    I tried the the following options:
    1. Interface - but I saw that interfaces doesn't have savegame areas option
    2. make a scene of save load page, but than when i am showing the scene it will replace the current one and won't be on top of it

    so, there is a way to do this?

    Bažant

    2 Posts


  • #2, z afrlmeSaturday, 24. June 2017, 11:33 hodinky 7 years ago
    Only by creating a custom save system using scripting or by using the built in quicksave/autosave system, but neither method will generate or display thumbnails like the default save system.

    If you used the autosave system, then you could display text or premade thumbnail based on the scene you created the save on - either way, there would be a fair bit of work involved.

    Imperátor

    7285 Posts

  • #3, z ke4Saturday, 24. June 2017, 12:54 hodinky 7 years ago
    There's a function for making a screenshot though. Never tried, but wouldn't be possible to access this image?

    Anyway yeah you would need to use interface + custom save system or quicksave/autosave system. I would recommend you to stick with the quicksave system as it's much more cimplicated to build own save system than it might seems.

    Zabiják klíčů

    810 Posts

  • #4, z afrlmeSaturday, 24. June 2017, 13:12 hodinky 7 years ago
    There's a function for making a screenshot though. Never tried, but wouldn't be possible to access this image?

    Anyway yeah you would need to use interface + custom save system or quicksave/autosave system. I would recommend you to stick with the quicksave system as it's much more cimplicated to build own save system than it might seems.
    Maybe using the draw function?

    Imperátor

    7285 Posts

  • #5, z ke4Saturday, 24. June 2017, 13:42 hodinky 7 years ago
    Good point. Something like this, then?

    createScreenshot("vispath:screenshots/filename.png")

    function draw()
    
      graphics.drawSprite(graphics.loadFromFile("vispath:screenshots/filename.png"))
    
    end
    
    
    
    graphics.addDrawFunc("draw()", 0)

    This is obviously a simple examle without even setting a position.
    Though i don't know if this can be accessed in the build version. Maybe using localAppDir would be better instead?

    Zabiják klíčů

    810 Posts