6 Dynamic Motion: Implementing Movement and Spawning
Join our book community on Discord
In the previous chapter, we learned about the basics of scripting, so now let's create the first script for our game. We will see the basics of how to move objects through scripting using the Transform
component, which will be applied to the movement of our player with the keyboard keys, the constant movement of bullets, and other object movements. Also, we will see how to create and destroy objects during the game, such as the bullets our player and enemy shoot and the enemy waves that will be generated during the game (also called ...
Get Hands-On Unity Game Development - Fourth Edition 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.