Confusion about Activity Guide Instructions


#1

I think that the directions in the activity guide are confusing. We are telling the students to use the center of their squares to determine the X or Y location but on studio the X and Y locations for a square are the top left corner. Are we switching this up on them because this is how the istouching block works by looking at the center of a shape??


#2

Hi Michelle,

It’s this way because Game Lab uses the center of the sprite for its x and y locations. The square is the default shape of the sprite if it doesn’t have an animation set, but it’s placed according to its center, not its top left corner. So, you are right that because isTouching works with sprites, not drawn squares, that we are using the center to determine the x and y position.

Elizabeth