ChatterBox

BlitzPlus Forums/BlitzPlus Beginners Area/ChatterBox

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This is a nice program to do that is nifty and makes use of things you're already using, and adds a little bit more. here's a description of it:
Make your window and then plot three points, they can be anywhere, but it works nicely if they make a wide open triangle. Then, plot a third point randomly in the window. Then, keep plotting points by doing the following: Make a random number from 1 to 3. Then, according to the number, plot a point that is halfway between the last point placed and one of the three original points (if the random number is 1 then it will go to the first point you put, 2 it will go to the second, etc.). Plot points until someone pushes a key on the keyboard.

This isn't easy to do if you haven't done it before, but its a nice way to introduce you to some standard programming functions and statements, as well as getting used to math in a programming environment. Besides. I love this program (called The Chaos Game). It was one of the first programs I could make in a boring class period at school in QBasic. It can be tough, though, so feel free to ask questions.