Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need to make a create-a-class system like in COD but I don't know what code I need. I am also wondering if I have to make a photoshop image for every way it could look or do I type in the code to load a certain image.

share|improve this question
    
Fully spec out the feature set you need, then your questions will have answers. –  Tetrad Jul 30 '12 at 19:53
add comment

1 Answer

In your player class you would need say 3 power up classes declared, in your constructor for your class you could set them as default power ups. Then in the player class you would need a get and set method, a get method to return the current power ups and set method to set them.

For your actual powerups just have an image stored in the class and draw that when you create the class object.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.