Apple Game Frameworks and Technologies - BodySize and Offsets do not work properly if player is outside of the dungeon tiles. (page 236)

Apple Game Frameworks and Technologies - BodySize and Offsets do not work properly if player is outside of the dungeon tiles. (page 236) B8.0

If the player is outside of the dungeon the bodySize and bodyOffsets do not allow the player to move along the wall. In the picture below the player is not able to move any higher up the screen. Also if the player moves along the outside of the dungeon along a long wall the player will drift up (or down depending on the tile) once it crosses the tile boundary.

Image 12-7-20 at 8.08 AM

1 Like

Hey, Eric.

Thanks for taking the time to comment on the book. I understand that you’re trying to have the player explore outside and beyond the dungeon walls.

In Val’s Revenge, the player is permitted only to travel within the dungeon walls, which means travel elsewhere is not possible or expected.

You can, of course, change the design, and use what you’ve learned in the book to set up other scenarios where that type of travel path is allowed. Hope that helps!

1 Like