Author Topic: some BASIC fundamentals..  (Read 3235 times)

0 Members and 1 Guest are viewing this topic.

Offline housey

  • ZX 81
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
some BASIC fundamentals..
« on: November 18, 2007 »
Hi All,

I'm new to FreeBasic and demo coding and wanted to get some advice..

I've read the FreeBasic tutorials on the site, which are great btw (I read them right through and understand the code)! I've tried modifying the scroller demo into a bit of an intro.  However, when I call my own sub routine from within the WHILE loop which calls the sub routine for the scroller etc it makes it run kinda jerky.  The scroller is like skipping frames because it is dealing with the other routine inbetween.  I suppose really I just need a bit of advice about structuring my code so things are called correctly and more than one thing going on doesn't interrupt the other.

Don't know if I explained that well enough but I hope so.  I didn't put any code here as theres not much to see really, just drawing of lines, pixels etc.

any advice or links would be really cool!

cheers

housey  :carrot:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: some BASIC fundamentals..
« Reply #1 on: November 18, 2007 »
You will need to post your program here Housey, once you have done that then we'll be able to help you fix it.

Calling a subroutine should not slow it down by the way so there must be some other problem.

Shockwave ^ Codigos
Challenge Trophies Won:

Offline housey

  • ZX 81
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: some BASIC fundamentals..
« Reply #2 on: November 20, 2007 »
thanks shockwave.  managed to sort the problem this time.. it was some code that was run before the sub routine.. hope to post *something* soon...  :||

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: some BASIC fundamentals..
« Reply #3 on: November 20, 2007 »
Glad you got the problem sorted out anyway, whatever it was!

Looking forward to you posting some of your work..
Shockwave ^ Codigos
Challenge Trophies Won: