A Few Questions to anyone who may know.

METALGod32
Hey i have a few questions to anyone who may know the answers.


First off my game is multiplayer.

Question 1: How would i go abouts by making it where, if one player Looks at another, they'll see that players stats?


can't think of the other questions i had right now but i'll post here when i do.


Thanks in advance :)

francisstokes
Not sure if u can do that, since the players vars would all be local.

Cryophile
Why not make an object for each player (name being their userid) and assign properties (the stats) to that object? Then you can get the stats for that player through the object since the object name is their userid.

Alex
Players have an object already... it's called player1, player2 etc.

You could set properties for that player object. Then when another player looks at them, you just need to read the properties of the object the player is looking at. Simple...

Cryophile
I didn't realize that there were already player objects. I've never actually attempted a multiplayer game yet. So... would it have to be player%userid% or is there an easier way?

Alex
Is player%userid% not easy enough??

METALGod32
Thats easy for me, i'll go with that...LOL :)

Cryophile
No, no... it's quite easy. I was just wondering if there was a built in string variable or something since you seem to have a lot of those :lol:

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums