I want to implement the loop of my android game if some body could help me
I have loaded random images on image view.
Now i want to accelerate my image from bottom left of screen to center of screen making an angle of 45 degrees.after reaching the peek it should come down at the bottom right corner making 45 degrees angle..
my code is
int[] imageView = {
R.id.imageV
};
int[] images ={
R.drawable.image1,
R.drawable.image2,
R.drawable.image3,
R.drawable.image4
};
Random rand=new Random();
for(int v : imageView) {
ImageView iv = (ImageView)findViewById(v);
iv.setImageResource(images[rand.nextInt(images.length)]);
}