This has nothing to do with getters, setters, or scope.
Scottie you said the x and y are the x and y of the bullet? Then you need to instantiate the bullet, say B. Then your code should look like this:
public Double yVelocity = B.y-SpaceShip.y;
public Double xVelocity = B.x-SpaceShip.x;
Or for your specific case you will have to declare x and y as static. However if you do that you should be careful with x and y.
Another quick trick you could do. If you are just running that class, as in you have a main() in it. Copy everything that you have in your main() then just add the lines:
Bullet B = new Bullet();
B.doIt();
After that, in the class, make a method named doIt() and paste everything you copied from main(). If you are running the main from another class or just accessing Bullet from another class you just have to instantiate Bullet first, at which point you have to do one of the two solutions I wrote above.
Tag(thx fkusumot) - "Yet again I completely fail to see your point..."
HD vs Wii, PC vs HD: http://www.vgchartz.com/forum/thread.php?id=93374
Why Regenerating Health is a crap game mechanic: http://gamrconnect.vgchartz.com/post.php?id=3986420
gamrReview's broken review scores: http://gamrconnect.vgchartz.com/post.php?id=4170835








