Discord
Login
Community
DARK THEME

Player Played For The First Time?

How do i know if a player played my game for the first time?

You can use the storage API for this. You find it explained at the very end of the documentation.

Basically something like:

  if storage.get("counter") == 0 then
    print("playing for the first time")
  end

  // and when user actually starts the game
  storage.set("counter",storage.get("counter")+1)

Useful for tutorials.

In-game tutorials.

Hmm, I didn't realise there was a storage function like that... could be quite interesting testing using the storage for quicker raytracing by looping through a list of rgb values!

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community