Time for action – modifying the collision bounds of a tile
The game file to import and load for this session is 5961_03_04.stencyl
.
As we've seen, the collision box is too large for the leafy platforms; it only needs to surround the top two-thirds of the tile, so let's create a new tile collision shape that meets that requirement.
We're going to be modifying tile collisions, so we need to display the Tileset Editor:
Go to the Dashboard tab, click on Tilesets, then double-click on the thumbnail for our tileset in the main panel.
Click on any tile in the tileset in the left-hand panel; the collision-shapes panel will be displayed at the top of the right-hand panel.
In the upper-right panel, click on the gray + button and then select Create Box… in the pop-up menu.
In the Create a Box… dialog box, enter the Name, X Position, Y Position, and the Width and Height information as shown in the following screenshot:
Click on OK.
In the left panel, click-and-drag the mouse on the first leafy platform tile...