IronChef253 wrote:I could be wrong, but I think it really depends on what method you are using to draw.
If you are using a canvas, I believe you should be wiping out all the data on the screen every frame and then setting the x,y of the bitmap when you redraw the canvas. Basically...you should never need to find out what the x,y are because you are the one setting those variables on draw. It's not like Flash where you can always find out what the x,y of a movieclip is on the stage.
Bitmap b = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888);
Therefore, you should have a "Map" class that contains x and y variables to track the bitmap's location on the canvas and then a "Draw(Canvas c)" function that draws the map to the canvas. In addition, you have a Bitmap called myMap or something and if you want to move it, you redraw it in the desired location after the canvas gets cleared.
Users browsing this forum: No registered users and 2 guests