Join Jesse Freeman for an in-depth discussion in this video Animating repeating background textures, part of Unity 5 2D Essential Training (2015).
- So that our background is able to scale…to the full size of the screen,…let's look in to how to actually make it look…like it's scrolling by.…Now we could create a bunch of different background tiles…and scroll them around the screen…but that's not going to be very efficient.…What we're gonna do is play around with the textures offset.…To give you a preview of how we'll achieve this,…let's run the game, go to the background,…scroll all the way down,…and here you'll see we have our Shader.…Now let's look at the Shader Settings…and you'll see this offset X and Y value.…
If we select just before the X value,…and drag it left and right,…you'll see that it looks like it's scrolling.…We're gonna use a script…in order to change this offset value…to continuously run to make it look…like the background is going by.…In fact, when we build our player,…the player will be standing still…and the background will give the impression…as if everything is moving past the player.…Let's reset the offset X value back to 0…and stop running our game.…
Super Zombie Runner riffs off the popular endless runner genre: a one-button casual game that's not only fun to play but exciting to build. The focus of the work is a reusable code base that you can extend and make your own, while learning the basics of object pooling, supporting multiple screen resolutions, tracking scoring, and multi-platform publishing. Along the way, Jesse covers key Unity features, such as working with sprites, creating animations, and leveraging the UI components.
- Working with sprites and animation
- Creating the player
- Spawning GameObjects
- Adding obstacles and collisions
- Building the game objects and logic
- Managing game state
- Creating pixel-perfect cameras
- Designing for multiple screen resolutions
- Adding scores
- Optimizing performance
- Publishing to desktop, web, and mobile platforms
Skill Level Intermediate
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Adding UI
8. Creating More Obstacles
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.