This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
item_container_tutorial [2017/12/06 12:04] – justin | item_container_tutorial [2017/12/06 13:51] (current) – justin | ||
---|---|---|---|
Line 22: | Line 22: | ||
{{: | {{: | ||
- | In the Properties dialog, check the [[Item Container]] checkbox to indicate that you want to allow this [[object]] to contain [[item|items]]. Double-click any [[item|items]] that you wish to initially be included in the [[item container]] - this will add them to the box on the right labelled "Items in Container" | + | In the Properties dialog, check the [[Item Container]] checkbox to indicate that you want this [[object]] to behave as a container. Double-click any [[item|items]] that you wish to initially be included in the [[item container]] - this will add them to the box on the right labelled "Items in Container" |
{{: | {{: | ||
Line 40: | Line 40: | ||
There is one more step to ensure that the [[player_character|player]] can interact with the [[item container]]. When I placed the treasure chest, the [[Map Editor]] removed any [[navigation_and_interaction|navigation paths]] to the [[tile]] that the chest is located on because the [[object]] is configured as being not passable. First, decide which adjacent [[tile|tiles]] the [[player_character|player]] should be able to interact with the [[item container]] from. In this case, there are two adjacent [[tile|tiles]] from which the [[player_character|player]] should be able to access the chest. | There is one more step to ensure that the [[player_character|player]] can interact with the [[item container]]. When I placed the treasure chest, the [[Map Editor]] removed any [[navigation_and_interaction|navigation paths]] to the [[tile]] that the chest is located on because the [[object]] is configured as being not passable. First, decide which adjacent [[tile|tiles]] the [[player_character|player]] should be able to interact with the [[item container]] from. In this case, there are two adjacent [[tile|tiles]] from which the [[player_character|player]] should be able to access the chest. | ||
- | First, switch the [[Map Editor]] into " | + | |
+ | To do so, switch the [[Map Editor]] into " | ||
{{: | {{: | ||
- | As shown below, connections of type " | + | Select |
{{: | {{: | ||
Save the [[map]], [[exporting_your_game|export the game]], then try out the [[item container]] you've created! | Save the [[map]], [[exporting_your_game|export the game]], then try out the [[item container]] you've created! | ||
+ | |||
+ | {{: |