-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Unity 2022 by Example
By :

Adding moving platforms to our game’s level adds to the visual interest and provides additional challenges for the player. Unity again provides tooling that makes creating moving platforms a simple and straightforward task right in the scene View and without needing to write any code.
We previously used Sprite Shape to make a closed platform, but Sprite Shape also allows the creation of open shapes, and that will be perfect here for making a small platform that we can move.
Introduced for the Unity 2022 tech stream, we have a new 2D package called Splines. We’ll be using Splines to create the paths our platforms will move along – this is where the Spline
component is used. And the Sprite Animate
component is used for moving a platform along the spline path and doing so without using any code. Nice!
Splines
Smooth shapes can...