Not starting how it should
Blitz3D Forums/Blitz3D Beginners Area/Not starting how it should
| ||
Wotcha, folks. Just getting into Blitz and have just bought the book 'Learn to program 2D games in BB'. Something that's slightly puzzled me from day one (and now annoys) is that I can't seem to print to the screen straight away. In the book, the following code.......... Graphics 640,480 Text 280,240,"Hello, World!" WaitKey() End ........should open up full-screen with the words "Hello, World!" on it. Mine doesn't! Mine opens up in a window and shows nothing unless I put the 'Flip' command in just after the Text command. I'm using BlitzPlus IDE V1.35 Linker V1.10 Runtime V1.37 and have installed the update. What am I doing wrong? Many thanks, and apologies for such a silly question. Regards, Tobo |
| ||
Blitz Plus i'm sure always draws to the backbuffer. Functionality changed abit. That book was written for blitz2d/3d. All of it should work tho. Just that was changed was all :) |
| ||
I bought Blitz+ very soon after it's release. Most code snippets were written for Blitz 2D and didn't work. The thing that you will notice in most of the posted B2D code is that it does not use the 'Backbuffer()' command and omits the requisite 'Flip' command. So to get your code working do this: Graphics 640, 480, 0, 1 SetBuffer BackBuffer() Text 280, 240, "Hello, World!" Flip WaitKey() End |
| ||
Thanks, Guys. Fantastic stuff. |