Game Development Reference
In-Depth Information
Hard Block1.Position.Y to tableCellValue(game.Hard Block1,
game.WhatLevel,2). These two behaviors are shown in Figure 7-22.
Figure 7-22. Initial positioning of Hard Block1
Open the second instance of the Hard Block actor and rename it ''Hard Block2.''
Drag and drop a Change Attribute behavior into the instance and change Hard
Block2.Position.X to tableCellValue(game.Hard Block2, game.WhatLevel,1).
Drag and drop another Change Attribute behavior into the instance and change
Hard Block2.Position.Y to tableCellValue(game.Hard Block2,
game.WhatLevel,2). These two behaviors are shown in Figure 7-23.
Figure 7-23. Initial positioning of Hard Block2
Open the instance of the Soft Block actor.
Drag and drop a Change Attribute behavior into the instance and change Soft
Block.Position.X to tableCellValue(game.Soft Block, game.WhatLevel,1). Drag
and drop another Change Attribute behavior into the instance and change Soft
Block.Position.Y to tableCellValue(game.Soft Block, game.WhatLevel,2). These
two behaviors are shown in Figure 7-24.
Figure 7-24. Initial positioning of Soft Block
 
Search WWH ::




Custom Search