Quite new to PB, got some questions...
Posted: Sat Oct 09, 2004 7:27 pm
First off I'd like to say that PB looks very prommising. Enough to make me stop writing in VB 6 & .Net. I love the fact that I can actually make stuff for my Linux box now. So I'm hoping to be able to convert my VB games to PB so that they can run under Linux as well, and with better performance.
Anywho i got a couple of questions that might be easy enough for some of you to quickly answer.
I don't quite think I fully understand the IncludeBinary() thing. Where It's supposed to be located (the statements) and how to use them after inclusion, like LoadSprite.
I saw a sample that someone posted the other day, but now I can't find it.
Trust me... I looked and looked.
I immageine after a bunch of IncludeBinary() statements, that my EXE would start to get pretty big. Is there a way that PB can load a sprite from a variable? Like say if I have an external binary file that I made with all my images in it. and then loaded a portion of that to a variable.
I'm not even quite sure I can do that yet either. I haven't messed with opening files and loading stuff into variables in PB yet. But I've done it in VB, so if it's possible I guess I'll figure it out.
Another way I thought of getting around that was to IncludeBinary() a blank bmp of a fixed sprite size or multiple Includes of different sizes. Open the Binary file and then start drawing on the sprites, which brings me to my 3rd question.
Is there a way to draw on sprites created with LoadSprite()?
That about it for now guys. Thanks in advanced.
OH, is there any good tutorials on interfacing with the windows made with the Visual Designer? I have yet to figure that out. It seems to be totally different from VB where you just double click on a control (you guys call them widgets, i guess) and it brings up the code area for that and you just select the event in a dropdown box and start typing away.
Thanks again guys.
GBeebe
Anywho i got a couple of questions that might be easy enough for some of you to quickly answer.
I don't quite think I fully understand the IncludeBinary() thing. Where It's supposed to be located (the statements) and how to use them after inclusion, like LoadSprite.
I saw a sample that someone posted the other day, but now I can't find it.
I immageine after a bunch of IncludeBinary() statements, that my EXE would start to get pretty big. Is there a way that PB can load a sprite from a variable? Like say if I have an external binary file that I made with all my images in it. and then loaded a portion of that to a variable.
I'm not even quite sure I can do that yet either. I haven't messed with opening files and loading stuff into variables in PB yet. But I've done it in VB, so if it's possible I guess I'll figure it out.
Another way I thought of getting around that was to IncludeBinary() a blank bmp of a fixed sprite size or multiple Includes of different sizes. Open the Binary file and then start drawing on the sprites, which brings me to my 3rd question.
Is there a way to draw on sprites created with LoadSprite()?
That about it for now guys. Thanks in advanced.
OH, is there any good tutorials on interfacing with the windows made with the Visual Designer? I have yet to figure that out. It seems to be totally different from VB where you just double click on a control (you guys call them widgets, i guess) and it brings up the code area for that and you just select the event in a dropdown box and start typing away.
Thanks again guys.
GBeebe