Examining screen size and scene size
In our newly created behavior, we specified the x position as 320
and the y position as 10
. It's a good idea to examine what these numbers mean so that we have a good understanding of why the statue actor is appearing exactly where it does.
The coordinates on a computer screen are measured from the upper left-hand corner of the screen, which has an x position of zero and a y position of zero. As we move from the left of the screen to the right, the x coordinate increases in value. As we move from the top of the screen to the bottom, the y coordinate increases in value, as shown in the following figure, in which the dotted lines represent the edges of our screen:
When we initially created our game, at the beginning of Chapter 2, Let's Make a Game! we accepted the default screen width of 640 pixels and screen height of 480 pixels. The screen size determines the area of the game that we can see on the computer screen at any one time. We can see this configuration...