A Few Questions to anyone who may know.

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
11 May 2005, 14:33
Not sure if u can do that, since the players vars would all be local.

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.

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...

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?

Is player%userid% not easy enough??

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

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: