Game Development Reference
In-Depth Information
Open the instance of the Target actor.
Drag and drop a Change Attribute behavior into the instance and change
Target.Position.X to tableCellValue(game.Target, game.WhatLevel,1). Drag and
drop another Change Attribute behavior into the instance and change
Target.Position.Y to tableCellValue(game.Target, game.WhatLevel,2). These two
behaviors are shown in Figure 7-25.
Figure 7-25. Initial positioning of Target
Re-open the Hard Block1 instance. In the Block Destruction rule, remove the
Destroy behavior by clicking the circled cross on the right side of behavior.
Drag and drop a Change Attribute behavior into the rule and change Hard
Block1.Position.X to 640. Drag and drop a Change Attribute behavior into the
rule and change Hard Block1.Position.Y to 1500. The updated Block Destruction
rule is shown in Figure 7-26.
Figure 7-26. Updated Block Destruction rule
Make similar changes for Hard Block2 (shown in Figure 7-27) and for Soft Block
(shown in Figure 7-28).
 
Search WWH ::




Custom Search