• Lior Alterman

Tutorial: How to create a justbuild.lol game in an hour! Part 3

Updated: Jun 3, 2018

Part 1 - Setting up a new Unity3D project with Third Person Character

Part 2 - Creating ground and ramp

Part 3 - Adding building capabilities

Part 4 - Final touches and building the game


Part 3 - Adding building capabilities


We don’t want just one ramp, we want a lot of them!!

So we need to make a file out of the Ramp, so we could duplicate it a lot of times in our game,

Drag the Ramp from the Hierarchy window to the project window


And delete the Ramp from the scene

Now it’s time for some coding, I already created the code, I commented it all, so even people with a little knowledge in programming could understand, download it from here, and drag it into the Project panel

Now select vThirdPersonController (our character) and drag the Building script to him,

Click continue

And then drag the Ramp file to the Ramp Prefab slot, so the character would know to duplicate the Ramp that you created

Press play and have some fun!


Next:

Part 4 - Final touches and building the game

837 views

© 2018 by Lior Alterman

lioralterman@gmail.com

  • Discord
  • Twitter
  • Instagram
  • Facebook
  • YouTube