UnderwareDESIGN

PlayBASIC => Beginners => Topic started by: kevin on March 19, 2017, 07:40:52 PM

Title: PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)
Post by: kevin on March 19, 2017, 07:40:52 PM
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.


Title: Re: PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)
Post by: stevmjon on March 19, 2017, 09:08:57 PM
i have picked up tips from all the videos so far.
Title: Re: PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)
Post by: kevin on March 20, 2017, 03:35:11 AM
  to be honest I wouldn't have expected that.. what stuff didn't you know ?

Title: Re: PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)
Post by: stevmjon on March 21, 2017, 01:24:02 AM
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.
Title: Re: PlayBASIC Tutorial: Intro To FOR NEXT LOOPS (2017-03-19)
Post by: kevin on March 21, 2017, 09:44:38 PM

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