So I basically have an Actor class called "Player" and its subclass called "Laser", and as the name implies, I want to add a laser at the Player's location that moves up by a certain speed each frame, but I want to access Player's attributes, specifically its X and Y location, which I am unable to do in its subclass.
Here is the code in the subclass Laser currently:
Thanks in advance
addObject(laser, player.getImage().getX(), player.getImage().getY());