Hi,
I'm working on a scrolling platformer game and I've got a couple of questions.
1/ I've put some platforms to float in the middle of the screen. They are 5px high, but since they are created on a 16x16 tile, there is a white space area of 11x16. Therefore, either I put the platform at the top of the tile (left example on my screenshot) and my character bumps his head on the white space when he walks below the platform, or I put it at the bottom of the tile (right example on my screenshot) and when he goes on the platform he stands on white space rather than the platform itself. What would be a way to define a 5px high bounding box to my platform?
2/ Or alternatively... Is it bad practice to set my platforms as monsters, seeing as these do have an option for bounding boxes?
Many thanks in advance.
I'm working on a scrolling platformer game and I've got a couple of questions.
1/ I've put some platforms to float in the middle of the screen. They are 5px high, but since they are created on a 16x16 tile, there is a white space area of 11x16. Therefore, either I put the platform at the top of the tile (left example on my screenshot) and my character bumps his head on the white space when he walks below the platform, or I put it at the bottom of the tile (right example on my screenshot) and when he goes on the platform he stands on white space rather than the platform itself. What would be a way to define a 5px high bounding box to my platform?
2/ Or alternatively... Is it bad practice to set my platforms as monsters, seeing as these do have an option for bounding boxes?
Many thanks in advance.