Hi,
I am making a version of a top down shooter.
The game starts with a splash screen and then on click, loads a level and then starts like your example top down shooter
The player object/sprite moves on mouse move and fires on a mouse click
The player sprite is 'flying' over water which is a background image sprite loaded when the level starts.
The problem I am seeing is this:
Sometimes when I start the game, if I don't move the mouse, the background image is not visible.
The player plane, and enemy planes are visible, along with enemy bullets.
This situation persists until a bullet strikes the player plane and an explosion animation is run. The the background appears.
It only happens on the first level, never once the game is running.
I have a callback routine set to track the loaded images, and they are all there so it is not a problem of an image not loaded.
This is an intermittent problem, happening probably one out of 2 or 3 times if I don't move the mouse (player).
So, is there a way to set a 'dirty' bit when I load the background image so it is redrawn immediately.
Or is there a call to force a redraw ?
I think I saw in one of the samples you discussing a 'dirty' area setting, but I could not find anything in the documented functions.
thanks for any help
cheers