Weekly Qbasic and Qb64 Lesson Topics

UNSEENS GDK+SFML Librarys => Discussions on GDK+SFML => Topic started by: GarrisonRicketson on May 22, 2011, 11:59:22 pm



Title: Unseen, I need some help
Post by: GarrisonRicketson on May 22, 2011, 11:59:22 pm
Unseen, I know I have asked you a similar question before, but I can not seem to find the explanation you gave once, nor remember,...
Code:
 GDK_Start
GDK_Screen_SetRes Main, 800, 600, 32, 0

DIM ideasprtsheet AS Sprite

GDK_Sprite_New ideasprtsheet, "ideasprtsheet.bmp", 10, 5, 49, 3 '// I couldn't seem to get this right.

GDK_Sprite_Show ideasprtsheet

DO
    FOR i% = 1 TO 7
        CLS
        GDK_Sprite_DrawXY ideasprtsheet, 100, 100, 0, i%
        _DISPLAY
        _DELAY .3
    NEXT
LOOP UNTIL INKEY$ = CHR$(27)

REM $INCLUDE:'UnseenGDK.bm'
     
What I can not remember is how to number the frames,..there are
49 frames in the sprite sheet, 10, in each line, 5 lines,but the 5th has only 9 frames,..
http://dl.dropbox.com/u/15387474/ideaSprtsheet.bmp
for the spritesheet.
 If you have time , and thanks,..
from Garry


Title: Re: Unseen, I need some help
Post by: Unseen Machine on May 23, 2011, 04:02:18 am
You  need to change the for loop to count from 0 to 48.


Title: Re: Unseen, I need some help
Post by: GarrisonRicketson on May 23, 2011, 07:15:31 am
Thanks!, Boy that was simple, I was so sure it was the 10,5, 49 3
I never even noticed,....1 to 7,......ok thanks a bunch, it works now,
from Garry


Title: Re: Unseen, I need some help
Post by: GarrisonRicketson on July 22, 2011, 09:20:08 pm
I want to comment, Unseen s GDK, seems very useful, unfortunately, evry time I started useing it, someone else, discouraged me, I have missed alot of useful "knowledge" and learning tools, because of this,
 Yes useing GDK is some what more advanced then just the basic qb64 stuff,
but I strongly urge anyone just starting, to include, useing this useful, nad creative game engine, learn about it as you learn, it  (GDK) is still under developement (I think),...but it is wise to get involved with it early, so you can understand any future changes,...Guess thats about it
from Garry
Edit:  I guess it (GDK) is finished, http://weeklyqbasicandqb64lesson.smfforfree.com/index.php/topic,59.msg1381.html#msg1381
At least thats what is said in the post, that the above link goes to.