How to make player fire rockets?
EDIT: Please ignore my stupid question. I asked because I was struggling with a bug which made this seams more complicated then what it really is. Feel Free to delete the post.
----------------------------------------------------------------------------------------------------------------------------------------
Im trying to make a simple game, but im having some problems.
Im my game I have a player class which covers move, draw, kill, life and so on. It also has a fireRocket() function, but im not sure how to really make the player able to shoot. Right now im trying fireRocket() create a new object (class Missile) but the whole thing does not really work and is very very messy.
What would be a good design/ solution to this?
Sorry if this is badly formulated/stupid question.