Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am developing a game and there is a background. My problem is, first time my background is not being visible, but second time I run this again, background is visible. What is the problem ?

regards,
Md .jubayar hosan.

[Edit, moved from answer]
Java
protected void doDraw(Canvas canvas) {         
         
     canvas.drawColor(color.white);
     ground.onDraw(canvas);

}

First time the effect of ground.onDraw(canvas); is not being visible. But from second time I am getting result.
[/Edit]
Posted
Updated 13-Sep-11 2:52am
v2
Comments
Pravin Patil, Mumbai 13-Sep-11 7:25am    
God knows the answer........... Please provide some more details, what can one understand given this problem...
merridus 13-Sep-11 11:32am    
When do you first call doDraw()?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900