Adding objects

Adding inanimate objects to our level is the next step; this will make it more visually interesting for our player.

Let's start adding objects as shown in the bullets as follows:

  • Acid: Go to Assets | 2D GameKit | Prefabs | Environments, and click and drag the Acid prefab into the Scene view or into the Hierarchy. Then, click on the Acid GameObject that was created in the Hierarchy, and we will be able to see its component in the Inspector:

In the Water Area component, we can change the acid block size, which will make it bigger or smaller, depending on what we need.

If we see that the acid is in front of the rocks, change ...

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.