Firrst of all English is not my first language so if it s hard to express my self clearly. So i need to change images after 10 seconds on a actor. Itiried delay but it works partialy becoue it stops the entire game not just the process of changing images, i need a timer to work in background so the actors and the game dont stop moving.This is my solution to the problem but it doesnt work. if you can fix it or tell me how it would save my grade at school thanks.
if (isTouching(Raketa.class)) { setImage("baby1.png"); getWorld().removeObjects(getWorld().getObjects(Raketa.class)); timer--; if(timer == 0) { setImage("baby2.png"); }