hey guys im making a shooter in c++, SDL and openGL.
I have been trying for 2 hours and cannot find a way to shoot my bullet through my bukket vector. I have problems with not being able to access members of a class because they are private so I jsut need some guidance as to where to declare each object and vector to get it done right.
I have a Player Class and a bullet class;
All of my SDL keyboard input events are in my player class. MY main calls them.
Where should i declare my bullet object and vecotr?
And should i make a class in palyer called 'shoot'. And how will i make it so when i press shoot(SPACE) it updates the bullet's x and y so it comes out of my player's x and y without teh update function looping and never moving? and my for loop aswell?