Inventory and gameplay visuals (2D only)

As well as being able to show icons that tell us whether we have certain keys or not, we can also use the Hub Door component to generate a similar feature in the game, but applied differently:

The Hub Door component is designed to change the visual state of a sprite depending on which and how many items we have in our inventory. Let's take the Zone2 example:

The first time we get to the zone, the door state is completely inactive, as we can see in the previous screenshot. After we pick up the key, the ...

Get Hands-On Game Development without Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.