Game Development Reference
In-Depth Information
Positioning the Target on the New Level
In the Level up rule, drag and drop a Change Attribute behavior and change
Target.Position.X to tableCellValue(game.Target, game.WhatLevel, 1).
Drag and drop another Change Attribute behavior and change Target.Position.Y
to tableCellValue(game.Target, game.WhatLevel, 2).
The updated Level up rule is shown in Figure 7-33.
Figure 7-33. Updated Level up rule
One last modification on the Target instance: you need to reset the
TargetDestroyed attribute at the start of each game.
Drag and drop a Change Attribute behavior into the Target instance and change
game.TargetDestroyed to false, as shown in Figure 7-34.
Figure 7-34. Resetting the Target Destroyed attribute
Replacing the Blocks
Let's modify the hard and soft blocks so they reposition themselves after the
target is destroyed.
 
Search WWH ::




Custom Search