user saving

sswisehauptsswisehaupt Member, PRO Posts: 76

how can i make the game save everything the player has done when he exits the game. So that when he comes back all collected items are still there.

Comments

  • A_ConstantinA_Constantin EnglandMember Posts: 79

    use the save attribute behaviour and in the loading screen, use the _load attribute _behaviour

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    you can also use tables, much easier to work with once you wrap your head around their functions.

  • sswisehauptsswisehaupt Member, PRO Posts: 76

    Thanks. So I guess it would be a game attribute behavior.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @sswisehaupt said:
    Thanks. So I guess it would be a game attribute behavior.

    A game attribute is often used to store values such as lives, score, money, level, etc. You would save and load the attributes you need in your game or use a table to save and load them all at once easily. If you have 14 attributes then you'd need 14 save attribute behaviors and 14 load attribute behaviors. With a table, loading is automatic and saving can be done with a single save table behavior.

  • sswisehauptsswisehaupt Member, PRO Posts: 76

    Thanks.

Sign In or Register to comment.