I´m making an Android game (just to learn some stuff). You collect objects and you get points for that. When player reaches for example 200 points, the objects start coming faster, the background changes etc...It is like a next level. But when you reach those 200 points, I would like to show an image or text on the screen (something like "2 level") for like 2 seconds but I don´t know how.
I tried to work with the timer but I failed.
I´ve got an "if" statement
if (score >= 200) {
frameLayout.setBackgroundResource(R.drawable.lvl2); // background change
// Make objects go faster
collect_obj1 = Math.round(screenWidth / 57F);
collect_obj2 = Math.round(screenWidth / 33F);
critical_obj = Math.round(screenWidth / 42F); // If you hit this one = Game Over
characterLvl1.setImageResource(R.drawable.characterLvl2); // character change
}