Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Released] Time-Based Energy and Travel System

Discussion in 'Assets and Asset Store' started by niknakgames, Jul 31, 2018.

  1. niknakgames

    niknakgames

    Joined:
    Aug 7, 2015
    Posts:
    25
    Available in the Asset Store



    TRY THE WEB DEMO


    Hey everyone!

    I made this system to support some of my mobile games and thought it may be useful for other developers.

    I am still working on some updates to this package, such as communicating with a time server, but in the meantime this package will give you a good head start on your project.

    Everything is time based. Travel can be instant or can be set to seconds, minutes or hours depending on the travel type. Different travel types can be added such as Walk, Run or Fast Travel. You can also assign energy to use different travel types. Faster travel types could use more energy than slower ones. Energy can be renewed based on time, just like travel.

    The best part of the asset is everything can happen offline and all values are re-calculated when the player returns to the app / game. Currently it uses a player prefs save manager, but includes an interface to easily change this to use save managers such as Easy Save 3.



    Features:
    • Set travel restrictions such as time and energy cost.
    • Renew energy and travel completely offline based on any time limits you set.
    • Easily create a world map and levels that players can travel between.
    • Create travel types for different restrictions such as Fast Travel, Running or Walking.
    • Lock and unlock areas.
    • Easy to use camera system for zooming around your map.
    • Saves everything so players can come back to wherever they left off even if they are still traveling.Integrates into any save system such as Easy Save 2/3.
    Feedback and suggestions are welcome as I want to make this as useful as it can be for developers!
     
    Last edited: Apr 19, 2019
  2. Diggidy

    Diggidy

    Joined:
    Jul 10, 2012
    Posts:
    10
    Hello, few questions.

    Does this require a server?
    If so, does it sync with server time or does it work off of the devices times?

    Thanks
     
  3. niknakgames

    niknakgames

    Joined:
    Aug 7, 2015
    Posts:
    25
    Hi there! To answer your question, currently no it does not require a server and checks against the time on the device.
    I am working on an update that will let you check against a time server to prevent cheating. I'll be posting more details about how it will work soon!

    Cheers!
     
  4. Enki

    Enki

    Joined:
    Jun 2, 2013
    Posts:
    20
    Still working on this? I've found an issue...
     
  5. niknakgames

    niknakgames

    Joined:
    Aug 7, 2015
    Posts:
    25
    Yes I am and am working on an update.
    Whats the issue? I'll try to get it corrected before I push the next update.
     
  6. Enki

    Enki

    Joined:
    Jun 2, 2013
    Posts:
    20
    Making travelsystem a singleton. I brought this into one of the MMO kits to tie together all the maps. By my second incursion to the travel map, the singleton will have bad data. Thinking it over, there was no reason it needed to be; finding by type upon loading the map was quick and easy enough for all other scripts needing to know.
     
  7. niknakgames

    niknakgames

    Joined:
    Aug 7, 2015
    Posts:
    25
    Thanks for the information! I'll look into it!
     
  8. niknakgames

    niknakgames

    Joined:
    Aug 7, 2015
    Posts:
    25
  9. Off_the_leash

    Off_the_leash

    Joined:
    Feb 5, 2018
    Posts:
    8
    Hi there,

    it´s currently not working your email and web sites.

    I bought some minutes ago your asset and I have questions about it.

    EnergySystem.cs
    Could you please change it to customize CurrentEnergy, If not exist playerPrefs then could be set it inside the Inspector Editor Window, what do you think ? :)


    General
    Are you able to add customize name for Player prefs in your scripts?
    For example :
    If i set in inspector name like : TravelSys_ then Player prefs be named like -> TravelSys_energy, TravelSys_...

    I´want to be able to maximize customize only with the internal editor window in Unity, without any changing inside in your code. (enable/disable debug, public action for easier to catch action etc...)

    It´s will be great If you do any documentation video for users to customize implementation with tips and tricks for anyone, how to use it, what´s api to call and do it etc...

    I read your documentation but it´s so much short i think.

    It´s somehow possible move more then one player with Travel ?

    Otherwise perfect job ! :)
     
    Last edited: Oct 19, 2020
  10. Tenguam

    Tenguam

    Joined:
    May 6, 2020
    Posts:
    5
    hi i bought your project ..
    have any tutorial
     
  11. Tenguam

    Tenguam

    Joined:
    May 6, 2020
    Posts:
    5
    the location that the player is sent on the map.
    how do i enter
    in town or village
    that I'm going to create.
    can you help me.