<

LESSON 4 - Part 1:  Graphic States, Sprites & Draw Groups

The Second Method (continued)

The test for the regular table is next, so open up Behavior #4111 and create one (1) new line for our one and only statement to go in there. Your statement will be:

Function:  2
True line:  True
False line:  False
Param 1:  0
Param 2:  0
Param 3:  4096  (Not equal to)
Param 4:  1793  (Stack Obj's Attribute)

The result will be:


Fig. 1.33

Did you see how in these we talk about "Attribute" instead of "graphic"?

Duplicate behaviors #4110 and #4111 to create the next set of processor and test. Open #4112, the processor for the next table color.

In the first statement, the Global call, change the zero (0) in Parameter 1 to a number 1.

In the second statement, change Parameter 2, to a number 1. We're doing this because this is for Graphic #2 and since we always start our counts with ZERO, the second graphic is number 1.

Behavior #4112 wil end up looking like this:


Fig. 1.34

Notice the first bit of the group of zeros. We have an "01" in there, telling the Global that we want the second graphic to be displayed.