I am working on a java code and my image is not shown in the final run. I put it in an entity and I also handed the entity over to the entity manager. Eclipse is not showing me any problem, but when I go to run I can not see my image only the background I did wrote before.
Any suggestions on how to fix it?
The following is the part for my code:
private void gorilla() {
Entity gorilla1 = new Entity("gorilla1");
gorilla1.setPosition(new Vector2f(590, 190));
try {
gorilla1.addComponent(new ImageRenderComponent(new Image("assets/gorillas.gorillas/gorilla_right.png")));
} catch (SlickException e) {
System.err.println("Cannot find file gorilla_right.png!");
e.printStackTrace();
}
entityManager.addEntity(stateID, gorilla1);
}