Skip to main content
gamedev.net
🔒 Locked

Question?

Started by Chimaera May 30, 2002 at 8:08 PM 4 replies 150+ views
Original Post
Chimaera
Chimaera
I''ve recently been working on a project, and I''ve run into a problem in the very beginning stages. Here it goes: I have an opening bitmap which I have locked on the screen for three seconds. I then want to clear that bitmap and load a sprite which will be used to initiate the game. Of course, after I wait three seconds and then load the sprite, it just goes over the opening screen and doesn''t turn out the wait i want. I need to clear the bitmap and then immediatly load the other one. I''m using win32 and so far only the gdi. I''d like to stay away from DirectX because, I''m now looking into OpenGL. Please, any help or suggestions would be appreciated! // chimaera
Colin Jeanne
Colin Jeanne
I''m not sure what''s happening? What specifically is wrong?



I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
Chimaera
Chimaera
Sorry. I read that over and I guess I really didn''t explain it very well. I''ll try again real quick.

Okay, I''ve got an opening bitmap (say a title screen). That I have pausing for three seconds as a display. I then want to go straight into the game, where a sprite (a ball, specifically) will load and gameplay will begin.

Right now, I have the title bitmap loading and waiting three seconds. Immediatly after that, I have the ball loading, but as it is now, it overlaps the old bitmap. (Hope you''re getting what I''m saying).

What I want it to do is load the title screen.. pause.. then clear that and go to the ball. I was wondering if anyone knew how to refresh the window or clear the bitmap off?
Rickwi22
Rickwi22
I know nothing about the kind of programming your doing, but could you not just load a bitmap of your background witch covers up the opening image? then load your ball sprite.
Colin Jeanne
Colin Jeanne
You might want to look up Rectangle() so that you can clear to a certain color easily.



I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
Programmer One
Programmer One
-Before showing the bitmap, draw a rectangle and fill it.
-show the bitmap.
-redraw the rectangle, and fill it
Load the sprite

By drawling the rectangle (the size of the screen) and filling it you ''clear'' the screen.


It''s all you need

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.