Jump to content
  • 0

Using instances to create private rooms?


prprRO

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  02/09/16
  • Last Seen:  

Hi guys,
I want each player to have their own private room that they can enter anytime.

Players will arrange the positions of the npcs in their rooms to get different effects, kind of like designing circuitry, and therefore the rooms have to be different from one to another.

To achieve this, the only way I can think of is to create instances.  So when a player enters their room, an instance is created, when they leave, the instance is deleted, the "circuit" is stored in a couple variables.

 

But I am worrying about memory cost of the instances and the processing power it takes to create/delete instances.  Do they take a lot of resources?

Does anyone know a better way to do this?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

It's the only optimal way to do it. Instances that is.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

I think before saving everything into variables it's better to use SQL, imo.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...