We're going to tell the two halves to use that image as their image.
We can do this by "reaching inside" the MySprite object and setting the MyImg property directly (if this sounds meaningless to you, you may want to go back and review how we invented a MySprite, and how it has a place to store an image).
We assign the pipe_piece image to each of the two MySprites we've created, but for the bottom_pipe, we also flip it so it appears the other way up.
|