In addition to chaining, you can also nest one conditional within
another. We
could have written the previous example as:
if ( iX < 0 )
{
Max.Winks ();
}
else
{
if ( iX > 0 )
{
Sleep ( 0.5 );
}
else
{
Max.Says ( "Hello" );
Sleep ( 0.5 );
}
}
There is now an outer conditional that contains two branches. The first
branch
contains a simple output statement, but the second branch contains
another if statement, which has two branches of its own. Fortunately,
those two branches are both output statements, although they could have
been conditional statements as well.
Notice again that indentation helps make
the structure apparent, but nevertheless, nested conditionals get
difficult to read very quickly. In general, it is a good idea to avoid
them when you can.
On the other hand, this kind of nested structure is common, and we will
see it again, so you better get used to it.
Alan Sturgess shared an excellent video he made using Tales Animator! You can still download Tales Animator here. Unfortunately it is only available for Wi
There is a prototype of simple online character designer available
HERE. It is only a prototype,
it does not contain many pieces yet but it can already generat
Web Cartoon Maker 1.5 is finally here! You can download it
HERE!
Here is what was updated in version 1.5:
Web Cartoon Maker Desktop Edition is now fully standal