PlayBasic Tutorial: Intro to GOTO & GOSUB statements
Welcome, in this tutorial we take a look at some none conditional control change statements, or otherwise known as Goto and Gosub statements in PlayBasic.
Commands used in this tutorial. Goto / Gosub / Return / For / Next / If / EndIf / Mousex() / MouseY() / MouseButton() / Print / Circle / Sync and possibly a few others.
PlayBasic Tutorial: Into to IF / Then and IF / ENDIF statements ( 2017/03/21)
This #tutorial walks the new coder through the IF / THEN and IF / ENDIF statement pairs which are used to selectively execute sections of the code, based upon the result of the comparison operators. IF statements actually allow changes in execution control, so they act upon the comparison, but it's just easier to think of them as part of the comparisons landscape when learning programming.
Setfps20DoClsrgb(20,30,40);
Mx =MouseX()
My =MouseY()Circle Mx,My,40,trueprint Mx
print My
box500,300,600,400,falseif(Mx >500)and(Mx <600)and My >300and My<400print"Mouse is within zone"endifSyncloop
Hi BASIC programmers in this tutorial we take a quick look at using the PRINT command in PlayBasic. The video shows the new programmer how the classic "Hello World" program would appear in the PlayBasic programming language. Beyond that the video looks into some other commands such as SYNC, WAITKEY, INK, RGB, LOADFONT and SetCURSOR and gives some basic tips on using the HELP and compiling programs.
So after this video, you'll learn enough to do something but most likely get yourself into more trouble.. But that's ok.. Learning to program can feel a lot like walking around in a dark room full hammers at times. You bang your head more than once and generally over and over and over again..
This simple 'fly-on-the-wall' tutorial is aimed at those brand new to PlayBasic programming. The lesson introduces the first time programmer to some of the core commands found in the PlayBasic language.
The objective of this lesson is to demonstrate how to display text messages such as "Hello World" using the PRINT command. Rather than learn about the boring bits such as Variables / Arrays and control loops up front, here we just want to get something on screen quickly. As such, the tutorial focuses solely upon the PRINT, INK, RGB, SYNC and WaitKEY commands.
The tutorial is captured in 1440x * 900y resolution. So we recommend watching it in the highest resolution you can. As some of the on screen text can get a bit small otherwise.
IDE LESSON - How To Load & Run Examples
This video is aimed those new to PlayBasic IDE, and tries to give the user a quick overview of how to load and run one any of the included examples.