How can i save players/enemies data?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MadDevil57

Right now i am just using individual script for every enemy and player characters, they share one class that do movement and ability stuff, but in that script they have same variable and i assuming that it isn’t the right way of storing data. So i want to knew if i am doing everything right or i should change implemintation and why?

these are the ways you can store data in godot (that im aware of):

  1. individually in the thing itself
  2. autoloads / singletons
  3. metadata

you could probably look into each one and see which one fits your needs :slight_smile:

OgGhostJelly | 2023-03-09 15:21

Thanks, i will try to read about it later! Also could you reupload your comment to answers section so i can select it as an answer?

MadDevil57 | 2023-03-09 15:40

:bust_in_silhouette: Reply From: Moreus

As long you happy you don’t needed change anything :wink:

Yeah it’s working but if i can do it more convenient way, i would like to rewrite that.

MadDevil57 | 2023-03-09 14:14