PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

I REALLY NEED SOME HELP BEFORE (please)

Ok, I have spent a great deal of time on a tile based engine for the computer (while working on my LA project). I am using directX 7.0 and I have a very big problem (at least for the nature of this game).

in order to display text, I am using this line of code

ExtTextOut(hdc, 1, 1, 0, NULL, Sscript, strlen(Sscript), NULL);

Now, sometimes the text appears, and sometimes it doesn't. In order to insure it doesn't redraw the screen after the text is draw, I set a variable called Status to 12. Then, when the user presses another key, it is reset back to 1 and the drawing continues. Now, all animation stops when status is set to 12, so I know that the program is not recording two presses.

For the love of God (or what ever you believe in) could someone please help me by telling me how to draw and make it stay there. On the ppc, that method works just fine, but it isn't on my comp. My project is due on friday, so if one of you god like programmers could give me some code that would get the job done, that would be great.
If I were making a game, I'd create my own font in bitmap format, all of the characters in one file. Then I'd load that file and just output the characters to screen to create words. Then all you'd have to do is display another layer of graphics instead of trying to use a true text command. Plus it would look neater because it's in a special font that goes with the game.
I don't have time for that though. So, unless that is my only option, I would like an easier way to get the text on the screen.
Just go into Paint, open up the text tool and just type ABCDEFG... and save it as a bitmap.
Is the DC you are drawing text into from the primary or from a back buffer?