Game Development Community

Adding an Experience point system

by Nicholas Helton · in Technical Issues · 05/11/2007 (3:10 pm) · 4 replies

Can someone please help me get started with implementing an experience point system. We are working off of the FPS starter and have our first build and now I want to have the player gain experience when he kills the enemy and display the exp on the hud

#1
05/11/2007 (4:16 pm)
That shouldn't be too bad - you can store the player's XP in the actual player object no problems. Then when a player kills someone, modify their XP and then send a message to their client to tell them to update the GUI with the new XP.

--Amr
#2
06/18/2007 (7:56 pm)
Do you mean store it in player.cs? Can you also put other attributes in there such as Strength and have it affect the damage you do?
#3
06/18/2007 (8:37 pm)
Do a search for attributes, and you should find the resource that walks you through how to implement this. It's deceptively simple when you see it :)
#4
06/19/2007 (2:03 pm)
@Nicholas - as Ted suggests using the search feature will more often than not provide some answers to what you are looking for, here is a link to a resource you can use for this:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=13020