Hey guys, I have a space invaders type game pretty much done but i’m trying to limit the amount of player bullets on screen to 5.
Player (the ship) and Bullet are two seperate sub-classes of Actor and I want an int in the Player class to be updated in a method in the Bullet class.
It just wont seem to work.
I have within a method in Bullet a part that removes the bullet when it goes off-screen (y < 0) and it is here that i want to change an int in the Player class.
Then I want the int to be used again in the player class.
If i havent made any sense i could post the code as well.
Thanks