Help with game cycle

  • #1, by LupaShivaFriday, 14. October 2016, 22:18 4 years ago
    Hello visionaire community

    Im creating a small game (about 80% done), it consists of a 1 room game, where you have to do different tasks to stay alive, and when you die, a new scene is shown, where you are asked if you want to try again, everything fine, but i cant make the game to restart in that 1 room, tried switch scene but it just shows the scene with the same game situation before dying, tried autosave and load, but doesnt work, stays the same but with a different room, how can i make it?

    Thanks a lot
    LupaShiva 

    P.S. Sorry for my english

    Forum Fan

    122 Posts


  • #2, by afrlmeFriday, 14. October 2016, 23:04 4 years ago
    Create another scene (regular scene not menu) & set the background as a solid black image. Create an at begin of scene action. Add a pause of say 250ms, then add some actions to it like so...

    pause 250ms
    if autosave #1 exists
    else
    execute autosave #1
    end if
    pause 250ms
    show scene of "current character"

    show that scene after clicking new game instead of changing immediately changing to the scene you were talking about. It should create a save where all the conditions, values, etc are at their default value.

    Imperator

    6842 Posts

  • #3, by LupaShivaSaturday, 15. October 2016, 00:09 4 years ago
    Thanks for the help but i cant find the "show scene "current character", i only can find "show scene "current scene" and "change to scene of current character", and this screen would be before the 1 room right?

    Thanks a lot

    Forum Fan

    122 Posts

  • #4, by afrlmeSaturday, 15. October 2016, 00:15 4 years ago
    Thanks for the help but i cant find the "show scene "current character", i only can find "show scene "current scene" and "change to scene of current character", and this screen would be before the 1 room right?

    Thanks a lot
    Change to scene of current character is the one I meant. Sorry was writing from memory & my memory isn't all that great! wink

    Yes it would be shown before the 1 room. New game > show new scene thing I said to create > change to scene of current character.

    If you then load autosave it should reset the game correctly. Alternatively you could try using the replaceGame() function that was implemented into VS4 but I believe that will only work after you've compiled & exported your game.

    P.S: I recommend adding an if query into the "start actions" bit under game (cog icon).

    if autosave #1 exists
    delete autosave #1
    end if
    1
    2
    3


    During development phase you should only use save files generated during the current play session because save files created prior to the current play session might not contain all the relevant data for your game which can cause issues. Creating, deleting or editing content in the editor will generate new information that will be missing from old save files.

    Imperator

    6842 Posts

  • #5, by LupaShivaSaturday, 15. October 2016, 00:26 4 years ago
    Hum its not working =(

    Ill explain a little better, the room in order:

    Intro Room
    The room you said to create (where i create the autosave)
    The 1 room (where i want to load) and then show the next room when i die
    The Die room (where is the button to replay and execute load game)

    it stays in the die room, but without activating the at the beggining of the scene (die room)

    what i am missing?

    Thanks a lot

    Forum Fan

    122 Posts

  • #6, by afrlmeSaturday, 15. October 2016, 00:43 4 years ago
    Would you be willing to share your resource files with me or post some screenshots or a video of how you've got it setup, so I can get a better idea please?

    if you are willing to share your resource files with me then you can send a link to an email if you like (afrlme@outlook dot com) or send me a private message with a link or something.

    Imperator

    6842 Posts

  • #7, by LupaShivaSaturday, 15. October 2016, 01:15 4 years ago
    Here it is a image i created explaining a little more, now it does nothing =(

    Thanks again
    LupaShiva

    Forum Fan

    122 Posts

  • #8, by LupaShivaSaturday, 15. October 2016, 01:15 4 years ago
    Here it is a image i created explaining a little more, now it does nothing =(

    Thanks again
    LupaShiva

    Forum Fan

    122 Posts

  • #9, by LupaShivaSaturday, 15. October 2016, 01:16 4 years ago

    Forum Fan

    122 Posts

  • #10, by afrlmeSaturday, 15. October 2016, 01:21 4 years ago
    Here it is a image i created explaining a little more, now it does nothing =(

    Thanks again
    LupaShiva

    You seem to have triple posted & the image isn't showing up.

    * edit: nevermind. I see you sent me an email with an attachment.

    Imperator

    6842 Posts

Write post