ReneMiner
22-10-2012, 11:33
I hope this is the right section of this forum to ask.
I discovered thinBasic yesterday, early in the morning by searching for some new, up-to-date Basic-language and I think I should give it a try.
(I used vb from 3.0 to 6.0, purebasic, qb and all kinds of basic languages that was available in the old days for vc20,c64,plus4, amiga, atari xl+xe+st.
Now you can imagine the amount of my basic-knowledge (vb.net I do not like, I did Try- but it did not Catch me- especially the ms-vb-online-help is a nerving pain to me- I'm stuck to clearly arranged offline-helpfiles)
I never learned any other programming-language than basic. (html and similar I won't call coding-language, in C (++/#) and java I loose overview to fast because of the many objects that are generated automatically)
Now I've read a lot of the included help-file, tried many tutorials and browsed this forum for many hours as well, but I did not find an answer.
To get familiar with the use of thinBasic I want to port a simple 2d-game, that I wrote in another basic language, to thinBasic now. It's a simple tile-game with usual square 2D-sprites.
Now I'm up to use an ImageList to store all of my about 250 little sprites and draw them onto the canvas but I don't find out how I can draw bitmaps that are stored in ImageList at certain position of a window (Dialog) , Canvas or whatever.
It has to be possible somehow (I saw it in the Mushroom-Game).
Now my question is: Can I use Images stored in Imagelist to draw them transparent (i.e. RGB(255,0,255) shall be transparent) onto the Canvas?
Is there some example-code / template for use of 2D-sprites or do I have to use just TBGL as a 2D-engine?
And by the way: thinBasic-Help-Manual (*.chm-version) tells about FreeImage-Library- but it's not available in my tB-Version 1.8.9.0. (No .dll, nor samples either)
EDIT: OK, I've found out! I'm gonna use TBGL now instead of an ImageList (found the tbgl-specific Help in User-Help finally - since the "TBGL Help File"-Button in thinBasic Help manual, section "thinBasic Modules > TBGL (Graphic Library)" does not work )
- Forums-Moderator might erase this question-
I discovered thinBasic yesterday, early in the morning by searching for some new, up-to-date Basic-language and I think I should give it a try.
(I used vb from 3.0 to 6.0, purebasic, qb and all kinds of basic languages that was available in the old days for vc20,c64,plus4, amiga, atari xl+xe+st.
Now you can imagine the amount of my basic-knowledge (vb.net I do not like, I did Try- but it did not Catch me- especially the ms-vb-online-help is a nerving pain to me- I'm stuck to clearly arranged offline-helpfiles)
I never learned any other programming-language than basic. (html and similar I won't call coding-language, in C (++/#) and java I loose overview to fast because of the many objects that are generated automatically)
Now I've read a lot of the included help-file, tried many tutorials and browsed this forum for many hours as well, but I did not find an answer.
To get familiar with the use of thinBasic I want to port a simple 2d-game, that I wrote in another basic language, to thinBasic now. It's a simple tile-game with usual square 2D-sprites.
Now I'm up to use an ImageList to store all of my about 250 little sprites and draw them onto the canvas but I don't find out how I can draw bitmaps that are stored in ImageList at certain position of a window (Dialog) , Canvas or whatever.
It has to be possible somehow (I saw it in the Mushroom-Game).
Now my question is: Can I use Images stored in Imagelist to draw them transparent (i.e. RGB(255,0,255) shall be transparent) onto the Canvas?
Is there some example-code / template for use of 2D-sprites or do I have to use just TBGL as a 2D-engine?
And by the way: thinBasic-Help-Manual (*.chm-version) tells about FreeImage-Library- but it's not available in my tB-Version 1.8.9.0. (No .dll, nor samples either)
EDIT: OK, I've found out! I'm gonna use TBGL now instead of an ImageList (found the tbgl-specific Help in User-Help finally - since the "TBGL Help File"-Button in thinBasic Help manual, section "thinBasic Modules > TBGL (Graphic Library)" does not work )
- Forums-Moderator might erase this question-