Creating the project

For the purpose of this tutorial, create a new blank Unity project like you usually would. Choose any project name and location and switch the preset to 2D. Next, you'll need to import two packages: the platformer demo and, of course, Chronos.

You can find the assets on the store here:

New Project

Import the packages in the root assets directory of your newly created project. For the Chronos package, make sure that the Gizmos directory is not in any subfolder — otherwise, icons in the scene view may not render properly.

If you plan on using Chronos from UnityScript (JavaScript), move the Chronos folder to Plugins/Chronos. That will tell Unity to compile the Chronos components before your own scripts, so that the latter can access the former correctly. This is not required for C# users.

As a last step before we get started, disable the script icons from Chronos so that they do not appear in the scene view. To do so, click on the Gizmos dropdown in the top right corner of the scene view, then click on the icon of every Chronos script to render each one faded out. Do not uncheck the gizmo checkboxes.

Disable Icons

Finally, open up the Scenes/Level scene that contains the platformer. Our project is now properly set up and we are ready to use Chronos!

Platformer Scene

Overview of the components Creating a timekeeper

This article was helpful for 1 person. Is this article helpful for you?