Blitz Basic Games Programming for Beginners - Part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,961
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 28, 2008

Part 2 looks at new commands to open graphics windows, generate random numbers, create For loops and draw rectangles to the screen.

Links:
http://www.blitzbasic.com - Official Blitz Basic Website, buy BlitzBasic here and access the forums.

http://coffeeinduced.wordpress.com - My game development blog. Includes all source code for these tutorials and media used. You can also see my current and past games projects here.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (amcadam26)

  • say Expecting 'Next' =\

  • did you put "next" after the "rect" line?

  • What I don't get is, the rand() command doesn't really randomize it.

    Every time I run it it gives me the same squares at the same location and the same color.

    Any clues?

  • add this to the start of the program:

    SeedRnd(MilliSecs())

    you should now get proper randomness.

  • lol i did exactly what you did and when i tried to run it, it said not enough paramaters =/

    this is what i wrote

    Graphics 640, 480, 16, 2

    For x = 1 To 20 Color Rand(255), Rand(255) Rect Rand(500), Rand(400), 50,50

    Next

    WaitKey

    End

  • it should say

    color Rand(255),Rand(255),Rand(255)

see all

All Comments (55)

Sign In or Sign Up now to post a comment!
  • Its hard to understand guys but the easyest way i find to learn this is buy watching it then follow this tutorial step by step, listen carefully, keep watching this video fpr about 8 times in a row paying real close attention then move on thumbs up if u agree!

  • @skaruts you need a seed, random is not realy random, it just does some math to chamnge a number

  • i don't really get this

  • haha continioung!!! no... wait...

  • CONTINUING !

    My first language is not English though :P

  • For x 1 to 20 means the loop will run 20 times, in this case it will create 20 rectangles.

  • For x = 1 To 20???? what's that mean?

  • @skaruts Yerp, always does that

  • I keep getting expecting end of file.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more