Jump to content
Sign in to follow this  
XXon

Multiplayer experience points

Recommended Posts

I want each player in multiplayer to have their own experience points as they progress. Possibly even retain that score if they quit and rejoin later.

Is there a way to do that. I am guessing it would be using a leaderboard, but I can't figure how to do it. I don't really care about who is winning, I just want to globally keep track of your experience points and add to it or use it as data for spawns.

I know how to create the global PLAYER in a single player game, which is very useful. Can I do that in multiplayer ? Maybe that would solve my problem.

Thanks!

Share this post


Link to post
Share on other sites

Hi XXon, sorry I saw this a while ago and meant to reply sooner.

The best way to do this is using Game storage (same place you make a leaderboard) but make a variable instead called experience with type number. This creates a separate variable for each player.
You can access this like other variables. Here is an example of adding 10 XP every time a player kills something. Let me know if you have any questions

 

image.thumb.png.18402a81545e516b12fda3baca20674d.png

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×