Chapter 14: Implementing Movement and Spawning
Now that we have prepared our project to start coding, let's create our first behavior. We will see the basics of how to move objects through scripting using the Transform component, which will be applied for the movement of our Player with the Keys, the constant movement of bullets, and other objects' movement. Also, we will see how to create and destroy objects during the game, such as bullets our Player and Enemy shoot and the Enemy Wave Spawners. These actions can be used in several other scenarios, so we will explore a few to reinforce the idea.
In this chapter, we will examine the following scripting concepts:
- Implementing movement
- Implementing spawning
We will start scripting components ...
Get Hands-On Unity 2020 Game Development 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.