• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Some images from array won't show up!

Ulixava

Lurker
Currently I'm working on a small tilebased game over a large grid. I'm currently in the process of creating / programming the grid. The grid itself is just a large array of "Block" class objects.

Whenever I'm doing for loops to draw out the whole array with all of its images, there is only one of them drawing out / one of them visible. The rest are just gone. I've checked the for loop, and debugged the whole program several times.

When I'm drawing text on the images locations the text is showing up.

I'm using the "canvas.drawBitmap(image, srcRect, dstRect, paint)" to draw them, just because I want them to change size. I also noticed that if I'm not resizing the images and I'm using "canvas.drawBitmap(image, x, y, paint)" they are showing up.

If anyone could tell me what's wrong I would be more than happy!

Thanks,
Alex
 
Back
Top Bottom