also, line 79, should make the explosion gif I also created, but as just after changing to be the explosion it's deleted, it's not visually shown.
setLocation(0, getY());
setLocation(0, getY());
public void act()
{
if(getX() == 0){
setLocation(400, getY());
}
if(getX() == 400){
setLocation(0, getY());
}
}public void act()
{
if(getX() == 0){
setLocation(400, getY());
}
if(getX() == 399){
setLocation(0, getY());
}
}public void act()
{
if (getX() == 0)
{
setLocation(399, getY());
}
else if (getX() == 400)
{
setLocation(1, getY());
}
}public void act()
{
if (getX() == 0)
{
setLocation(399, getY());
}
else if (getX() == 400)
{
setLocation(1, getY());
}
}public void act()
{
int x = getWorld().getWidth();
if (getX() == 0)
{
setLocation(x-2, getY());
}
else if (getX() == x-1)
{
setLocation(1, getY());
}
}public void act()
{
int x = getWorld().getWidth();
if (getX() == 0)
{
setLocation(x-2, getY());
}
else if (getX() == x-1)
{
setLocation(1, getY());
}
}