Game Development Reference
In-Depth Information
Figure 7-19. Soft Block table
Repeat the operation again to add another table named ''Target'' and add the
values shown in Figure 7-20.
Figure 7-20. Target table
You now have your tables all set. You will modify your actors accordingly.
Implementing the Recycling
The purpose of recycling is very simple. You position a block and when it is time
to destroy the block, instead of using the Destroy behavior, you will move the
actor out of the visible scene. When you go to the next level, you will again
change the position of the block back to where it should be for the next level.
This way you can have hundreds of levels with just one scene, which is very
efficient on memory.
 
Search WWH ::




Custom Search