Welcome, Guest. Please login or register.

Author Topic: Can someone help me with BASIC...  (Read 3340 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show all replies
Re: Can someone help me with BASIC...
« on: May 25, 2010, 08:57:38 AM »
IF you are using blizt basic or most decent basics.  You can set the screen you are drawing to.  As the last poster says draw the next screen to the background screen.  Then when you character reaches the screen just flip.  Its basically double screen buffering.   Might be cool speed wise to do this in the main game loop befopre your character gets to the edge of screen.  Only problem is if you have four possilbe screens then yopu will have to draw it as they get to the edge.  but still do the flip as it wil lapeear as screen just apperaing as opposed to being drawn.
 
Does this make sense ?
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show all replies
Re: Can someone help me with BASIC...
« Reply #1 on: May 25, 2010, 10:23:15 AM »
Thats a pretty good idea.  Though depends how quickly the screen draw takes.  If you are re-drawing a screen to the back buffer everytime a player changes direction might slow the game down quite a lot.  Suppose it depends how long screen draw takes, and what the target system spec is.
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show all replies
Re: Can someone help me with BASIC...
« Reply #2 on: May 25, 2010, 12:50:56 PM »
Out of interest what basic are you using, blitz or amos and is this for Amiga or other platform ?
 
I perosnally from a users point of view prefer a smooth scroll rather than flipping screen.
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show all replies
Re: Can someone help me with BASIC...
« Reply #3 on: May 25, 2010, 01:31:24 PM »
QBasic as in the really old basic that came with ms-dos ?  If you are doing it on PC would still suggest blitz basic .
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"