
The image shows where the sprite gets stuck.
if(E[0]->get_x() <= 205)
{
E[0]->set_velocities(1, 0);
E[0]->auto_move(1);
E[0]->move();
}
/* else if(E[0]->get_y() >= 380)
{
E[0]->set_velocities(-1, 0);
E[0]->auto_move(1);
E[0]->move();
}*/
else if(E[0]->get_x() > 204)
{
if(E[0]->get_y() < 380)
{
E[0]->set_velocities(0, 1);
E[0]->auto_move(1);
E[0]->move();
}
else if(E[0]->get_y() == 380)
{
E[0]->set_velocities(-1, 0);
E[0]->auto_move(-1);
E[0]->move();
}
}Probably something really simple that I am just missing but I cannot for the life of me find it







