I am trying to make a laser access my players damage variable to subtract from the damage variable when the laser hits my player class
public class Laser extends Actor
{
/**
* Act - do whatever the Laser wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
setLocation(getX()+3,getY());
if(isAtEdge())
{
getWorld().removeObject(this);
}
if(getWorld()!=null)
{
if(isTouching(Player1.class))
{
getWorld().removeObject(this);
}
}
}
}
