Making Sprites Appear and Disappear

The next two looks code blocks, shown in Figure 10.10, apply only to sprites. As the text displayed on the blocks indicates, they programmatically display or hide a sprite.

Figure 10.10. With these two code blocks, you can control when sprites appear on the stage.


Since they do not accept any input, these two code blocks are very easy to work with. For example, the following script can be added to any sprite to make it disappear and then reappear after a one-second pause.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.183.153