Forum begins after the advertisement:

 


[General] Questions for building a production ready game!

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [General] Questions for building a production ready game!

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19131
    soop
    Level 10
    Former Patron
    Helpful?
    Up
    0
    ::

    Hi! These are a couple features I’m very interested in videos about…

    1. Settings Page
    2. Save states
    3. Handling different screen sizes / resolutions

    I guess parts I’m most scared of are the things that are persistent between game launches, and the situations where players are changing the Camera in unexpected ways.

    Particularly the Camera portion sounds tricky, since we would have to change a lot of logic for Chunk Generation, Enemy Spawning, all UI elements, etc. Just food for thought!

    #19134
    Terence
    Level 31
    Keymaster
    Helpful?
    Up
    0
    ::

    Hi soop, thank you for tuning in to the stream earlier today :) I’ve timestamped the part of the stream below where I answered how to handle different screen sizes / resolutions, for your convenience.

    Settings

    Regarding the settings page, I assume you are asking how to save data that the user tweaks in those pages correct? Usually, to save game settings, PlayerPrefs are used: https://docs.unity3d.com/6000.3/Documentation/ScriptReference/PlayerPrefs.html

    PlayerPrefs are a very convenient way to save global game settings, and you can save either floats, integers or strings with them. For example, to save a brightness setting the player keys into the settings page, you can use:

    PlayerPrefs.SetFloat("Brightness", enteredValue);

    Then, to retrieve it elsewhere, you can do:

    float brightness = PlayerPrefs.GetFloat("Brightness");

    Save states

    Regarding save states, I will need to refer you to the Bench Universal Save System, an asset created to save games in our Metroidvania series: https://assetstore.unity.com/packages/tools/utilities/bench-universal-save-system-334468

    This video should give a quick glimpse into how to use it:

    https://youtu.be/XhLCot0DXp

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

Go to Login Page →


Advertisement below: