Turning all the small parts so far into a playable game.

So we have added almost everything needed to be able to make this into a level. Here we can make some prefabs of the platforms and we can throw together a level to show off what we have learnt so far.

Probably should have made a dolly track to show it off lol

The first thing we will want to do is make some prefabs, this will cut down the time it will take to make the level.

Let’s start with the moving platform. This one can be thrown together rather quickly and modified to fit into any place. First, we need a container for the moving platform, this will store the points it moves between and the platform itself.

With having them in a container, the platform can move from point A to point B without the points moving along with the platform. Having the point A setup on the platform (which should be reset back to 0,0,0 for ease of use later) we can move the platform to where we want it to start/end and then move the point B to where we want it to move between.

Next, we can prefab out the end of the ledges. Here we can take all the parts that made up our ledge grab system we made in the last one, this should keep all the positions we set up for the animations too (double yay).

Yeah, it has a lot of bits to make it look like that. Least we won’t have to place them all again :D

With one side done, we can just rotate the whole thing 180, and BAM! the other side is done as well!

With the sides done we can now set up the bulk of the platforms. Here I ended up making one side and then reversing it to get the other side. If you wanted to, you can make different ones a little like this, which can break up the repetitiveness of the patterns but for now, this will work.

Now that we have the prefabs made up, we can block out a level. By dragging in the prefabs and using the duplicate to make bigger platforms, we can block out a level in no time flat!

As you can see, with prefabs already made, you can put together a level really quickly. Normally I do put a bit more care into where the platforms line up, this was just to show how easy and quickly you can make the starting of a level.

The more prefabs you can make the more choices you will have, like with that one I could have made the larger platforms into a prefab which would make it even faster again.

Hope this was helpful and showed you how useful prefabs can be for blocking out levels even if it’s just for testing. We can always come back later for little touchups. As always test things to make sure they are working as intended and see you in the next one!

Game Developer in the making~

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Collection in java

Project Information Summary(10.11–10.15)

Instantiating & Destroying Gameobjects in Unity

Database management system(DBMS)

How to pass SAFe 5 PO/PM

To do before C++ project first release (Part 1).

Test Python applications with Pytest

Use An API To Get Data For Thailand Airports

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rose Owen

Rose Owen

Game Developer in the making~

More from Medium

Galaxy Shooter 2D — Completed Boss Fight + Game

Instantiate and Destroy Game Objects in Unity

New Enemy Movement Behavior

2D Game Development: Colliding with Colliders