PDA

View Full Version : Player Arrays


Tivoilos
06-11-2008, 12:00 AM
Hi all!

I am building a MMO Remake of Endless-Online an it will be made into Flash;

anyway I am trying to write Player Arrays but not sure how I'd do this an how to use the information in my code so it can give me the informaiton when the game is executed

so basically this is what the Array would need

PlayerName
PlayerSkin
PlayerLevel
PlayerAccess
PlayerLocation
PlayerStats
HP
MP
TP
STR
CON
DAMG
PlayerInventory
PlayerPaperDoll
PlayerLockerInventory

thats all I really need so if someone could help me out let me know!

GMaker0507
06-11-2008, 01:27 AM
You could create a 'Player' class, that would hold all of those variables and some player related functions.

AS2 or AS3

Tivoilos
06-11-2008, 02:28 AM
AS2

Any links on Class's?

NickZA
06-11-2008, 11:06 AM
http://www.gotoandplay.it/_articles/2004/01/as2OOPgame.php
http://www.joshtuttle.com/date/2008/06/

...looks like good ones. Although to be fair, a good search on google for "as2 classes" would help? ;)