Godot Version
v4.6.1.stable.steam [14d19694e]
Question
Sorry for asking..
The Goal:
A Inventory system, and all the data about the player, I think SQL is a little too OP for coop, but I want to add 4 player coop, or 6.. so I need a way to store information and it’s not as easy, as making a single player game
I know I can reference a scene and use its functions.. but I can’t see variables and influence them? so when I was setting up all my systems I used global as a placeholder location for all my player data..
and I don’t want to do that, I’m learning by just doing stuff and seeing if it works.. but I don’t know the answer to this puzzle..
I have an entity system that can hand out items, it can see the player that activated it.. so it can use functions inside the player script.. now that I think about it.. maybe I shouldn’t write the script that hands out loot inside the entity but inside the player.. I’ll give that a try
I would very well appreciate some help.. I feel stupid for asking and I’m sorry about that.. but I’ve been stuck on this for 2 weeks.
lot’s of thanks,
self.
1 Like
I am also not a pro in multiplayer stuff,I think you should maybe put the player data in a json database(like firebase realtime db)
That’s the only type of method I used to store data in a db.
If it’s a live game and data won’t be needed after everyone leaves, try NodeTunnel.
If you want to save data for individual players that persists with accounts and logging in, try Talo. I use these tools on every multiplayer game I make, and together they’ve got pretty much all the functionality one could possibly need.
4 Likes
Thanks,
I’ll take a look.
(I want to reply on your comment but it isnt working as planned..)
Realtime DB sounds interesting I’ll take a look in a sec, Its dinner time.
1 Like
Talo actually looks really awesome, I was looking into how dedicated servers worked..
it looks like talo has a lot of features for that..
3 Likes
After learning lots about classes, after being scared to touch them for a long time.. I noticed classes made my life a lot easier, and instead of making a complex system I can just create a new player and that player has its own stats, states and inventory etc..
I just juice the system with context and it fixes all my problems in life.
2 Likes