News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)

Started by kevin, March 19, 2017, 07:40:52 PM

Previous topic - Next topic

kevin

PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)

This tutorial takes the new basic coder through the bare bones of the FOR / NEXT loop.  The tutorial was recorded live and is uploaded virtually as is, warts and all.  In this tutorial we use loops to draw simple graphical objects such as boxes moving through to making a grid of scrolling boxes.

Commands we see in this tutorial.   For / Next / Step / Exit / Continue / Print / Line / Box / Sync / Ink / RGB() / RND() / RndRGB() and possibly a few others.



stevmjon

It's easy to start a program, but harder to finish it...

I think that means i am getting old and get side tracked too easy.

kevin

  to be honest I wouldn't have expected that.. what stuff didn't you know ?


stevmjon

the tips i picked up are things like:
> left click the #INCLUDE file and select 'open file at cursor'.
> SETCURSOR command (forgot about this one).
> use an exit condition with command LOOP (i forgot about that) .
> you don't need to use counter variable after command NEXT in a nested loop. i always use the variable.
> i haven't used CONTINUE. it looks handy.
> command RANDOMISE value (forgot about that). can use this in 3D for ground / hills.
> command RndRGB() (never used that one).

it is nice to get reminders of different commands.
It's easy to start a program, but harder to finish it...

I think that means i am getting old and get side tracked too easy.

kevin


it's good to know there's something inthem..  besides rambling :)