MSoul 0 Newbie Poster

Hello,

I am currently making a game in my Java programming course

My game is similar to Guitar Hero where the sprites will come down 4 different lines.

What I am trying to do is make them come down those lines at random

So far, I have made them come down in random locations, but can't restrict them, could anyone please help me?

I set up the code to be:

sprite.setLocation(randomDouble(), 0.00);

the lines are located:
0.1, 0.1
0.35, 0.1
0.65, 0.1
0.9, 0.1

Should I make separate sprites and restrict them to these locations and try to control the time in which they fall down the lines?

Thanks again!