Weekly Qbasic and Qb64 Lesson Topics
March 29, 2024, 01:29:47 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

Unseen, I need some help

Pages: [1]
  Print  
Author Topic: Unseen, I need some help  (Read 586 times)
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« 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
Report Spam   Logged

Share on Facebook Share on Twitter

Unseen Machine
Post Demos
*
Posts: 46


« Reply #1 on: May 23, 2011, 04:02:18 am »

You  need to change the for loop to count from 0 to 48.
Report Spam   Logged
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #2 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
Report Spam   Logged

GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #3 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.
 
« Last Edit: July 22, 2011, 09:29:45 pm by GarrisonRicketson » Report Spam   Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy