In this video, Jesse Freeman teaches you how to create a fake parallax scrolling effect. To do this we'll scroll the background texture a little slower than the foreground to give the impression of distance between the two layers. Working with repeating textures, quads and GameObject's dimensions in Unity 5 are important skills for building a 2D game.
- [Voiceover] Now we're ready to build the floor…for our game.…We're gonna use a similar technique…to what we did for the background.…But before we move on, let's select a background…and remove the mesh collider.…This is part of Unity's 3D physics engine…and we're not gonna be using it.…Simply click on the gear and remove the component.…Next let's create a new quad…and we're gonna call this, foreground.…While we're in here let's remove the mesh collider,…let's set its X position to zero,…and we're gonna change its scale to 64 by 64…since we'll be using a larger texture.…
We can also move this down just a little bit…so it's not covering up our background.…Next, we'll need to create a new material.…Let's go into our materials folder…and create a new material called…floor texture.…Again, we'll change the shade or type to mobile,…particles, alpha blended, and we'll need to make sure…that the new floor texture is repeatable.…Let's go back into our textures folder…and take a look at the floor texture.…
Now, previously we turned this into a texture,…
Start watching to learn how to convert artwork into sprites, create repeating background textures with Unity's TexturePacker, and build reusable game objects such as players, obstacles, and enemies. Jesse also covers the basics of object pooling, working with custom UI components, and multiplatform publishing.
- Importing artwork
- Editing sprites
- Creating repeating background textures
- Building reusable obstacles
- Recycling game objects
- Building an object pool
- Creating the player
- Starting and ending the game
- Displaying and saving the score
- Adding menus and text
- Publishing a Unity game in different formats
Skill Level Beginner
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Polishing the Game
8. Creating More Obstacles
Publish to different formats5m 42s
- 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.