﻿1
00:00:04,370 --> 00:00:05,450
‫Hello and welcome.

2
00:00:05,450 --> 00:00:11,000
‫In this lecture, we're going to be making a little bit of a platformer by having a look at how we can

3
00:00:11,000 --> 00:00:17,210
‫add new objects in to our level, how we can position them, rotate them, scale them and all that good

4
00:00:17,210 --> 00:00:17,750
‫stuff.

5
00:00:17,750 --> 00:00:19,580
‫Let's dive in and find out.

6
00:00:20,250 --> 00:00:25,350
‫So when we were flying around in our level last time you may have accidentally left, clicked on an

7
00:00:25,350 --> 00:00:27,270
‫object and it got selected.

8
00:00:27,270 --> 00:00:31,470
‫You can see this little highlight around the object in the scene shows that it's been selected.

9
00:00:31,470 --> 00:00:36,810
‫So the scene is made up of different objects called actors.

10
00:00:36,810 --> 00:00:40,470
‫Everything in this level is called an act.

11
00:00:40,470 --> 00:00:45,420
‫Anything that I can select separately is an actor, and you can see that when I select things in the

12
00:00:45,420 --> 00:00:49,960
‫viewport, they're also being selected in the outlier.

13
00:00:50,010 --> 00:00:58,110
‫The outlier is a textual representation of the actors in our level, whereas the viewport is the visual

14
00:00:58,110 --> 00:01:00,150
‫representation of those actors.

15
00:01:00,360 --> 00:01:08,010
‫And what I'm most interested in right now is figuring out how I can get new actors into my level.

16
00:01:08,400 --> 00:01:13,110
‫If you go to the toolbar, the only other bit of green on the toolbar for me is this quickly add to

17
00:01:13,110 --> 00:01:13,590
‫project.

18
00:01:13,590 --> 00:01:18,750
‫It's a cube with a little plus icon and if you click on that, you get a little dropdown of the different

19
00:01:18,750 --> 00:01:22,080
‫kinds of actors that we can place in our level.

20
00:01:22,200 --> 00:01:29,400
‫And if you just go to the shapes and go to Cube, then you can drag and bring into the level and you

21
00:01:29,400 --> 00:01:31,290
‫can see that little preview of where it's going to go.

22
00:01:31,290 --> 00:01:35,880
‫You can bring in a cube for us to play around with.

23
00:01:36,180 --> 00:01:41,970
‫Now you'll notice that every object that we select has got this little gizmo, which is three arrows

24
00:01:41,970 --> 00:01:45,420
‫pointing in the three cardinal directions.

25
00:01:45,720 --> 00:01:48,000
‫And you can see as I hover over them, they get selected.

26
00:01:48,000 --> 00:01:50,850
‫This allows us to move the object around in space.

27
00:01:50,850 --> 00:01:56,130
‫So if I select one of the arrows, it moves in the direction of that particular arrow.

28
00:01:56,130 --> 00:02:02,730
‫And also you can see that there is a little square between each set of each pair of arrows.

29
00:02:02,730 --> 00:02:09,480
‫And if I select the square, it selects both arrows at the same time and allows me to move within this

30
00:02:09,480 --> 00:02:12,060
‫plane of movement instead.

31
00:02:12,570 --> 00:02:15,600
‫Now we can also do other things to the objects in our scenes.

32
00:02:15,600 --> 00:02:17,490
‫We can rotate them, we can scale them.

33
00:02:17,490 --> 00:02:23,520
‫If you go to the toolbar that's just inside the viewport, there's a little mini toolbar and you can

34
00:02:23,520 --> 00:02:24,960
‫see that we've got a bunch of tools.

35
00:02:24,960 --> 00:02:29,640
‫One of these is selected is if you hover over, it says select and translate objects.

36
00:02:29,640 --> 00:02:34,290
‫That's what's currently selected and that's why we have got the gizmo that we're seeing that allows

37
00:02:34,290 --> 00:02:36,240
‫us to select and translate the objects.

38
00:02:36,240 --> 00:02:39,090
‫Next to it is the select and rotate objects.

39
00:02:39,420 --> 00:02:46,260
‫You can see I select that I get a different gizmo that allows me to rotate the cube instead in the different

40
00:02:46,260 --> 00:02:47,340
‫dimensions.

41
00:02:47,520 --> 00:02:53,790
‫And next to that there is the scale object tool which allows me to change the size of the objects.

42
00:02:53,790 --> 00:03:01,470
‫Also worth noting that just like with our scale tool, you can also scale on two dimensions simultaneously.

43
00:03:01,470 --> 00:03:07,170
‫If you select between the two arrows and there are keyboard shortcuts to move between these modes,

44
00:03:07,170 --> 00:03:09,720
‫w will get you to select and translate.

45
00:03:09,750 --> 00:03:15,990
‫E is going to get you select and rotate and R is going to get you the select and scale now right next

46
00:03:15,990 --> 00:03:19,440
‫to each other on the keyboard, which is why they are chosen that way.

47
00:03:19,440 --> 00:03:23,400
‫So let's challenge you to make your own little platformer.

48
00:03:23,400 --> 00:03:27,480
‫You're going to do this by placing some more cubes in to your level.

49
00:03:27,600 --> 00:03:33,690
‫You're going to use that quickly add button and then shapes and then cube to bring it into your level,

50
00:03:33,690 --> 00:03:40,170
‫then scale it and position it wherever you want it, and try and see if you can get your third person

51
00:03:40,170 --> 00:03:47,160
‫character to escape out of the box that they're currently in by placing platforms strategically.

52
00:03:47,160 --> 00:03:53,220
‫By the way, a little tip as well is that if you use control C in control V, you can duplicate an object

53
00:03:53,220 --> 00:03:58,740
‫in your scene as well so that you don't have to recreate it from scratch and rescale it if you don't

54
00:03:58,740 --> 00:03:59,370
‫want to.

55
00:03:59,400 --> 00:04:01,230
‫So pause video and have a go.

56
00:04:04,340 --> 00:04:04,880
‫Okay.

57
00:04:04,880 --> 00:04:05,570
‫Welcome back.

58
00:04:05,570 --> 00:04:09,500
‫So I'm going to have a go at repositioning this platform.

59
00:04:09,500 --> 00:04:14,540
‫So if we go to the middle area, we should be able to jump onto it.

60
00:04:18,970 --> 00:04:20,830
‫So that's going to be my platform one.

61
00:04:20,980 --> 00:04:26,410
‫And I can do control C, control V, which has given me a second instance that I can then move a little

62
00:04:26,410 --> 00:04:29,770
‫bit higher to try and jump onto as my next stepping stone.

63
00:04:29,770 --> 00:04:36,250
‫And the little handy tip is that if you hold down alt while selecting and dragging something, it actually

64
00:04:36,250 --> 00:04:39,600
‫automatically creates a duplicated object for you.

65
00:04:39,610 --> 00:04:44,290
‫It's such a common thing to want to do that there is a very, very quick shortcut to do it.

66
00:04:44,290 --> 00:04:49,390
‫So let's go ahead and play, see if I can use this ladder to escape my level.

67
00:04:49,390 --> 00:04:51,100
‫I'm just going to run over here.

68
00:04:51,280 --> 00:04:57,280
‫I'm going to jump on to the platforms and sure enough, I can get out and I'm going to fall all the

69
00:04:57,280 --> 00:04:58,720
‫way to my doom.

70
00:04:58,810 --> 00:05:00,130
‫So hit escape.

71
00:05:00,490 --> 00:05:02,290
‫And you can see I'm a little bit out of my level now.

72
00:05:02,290 --> 00:05:07,960
‫If I wanted to go back into the level, if I double click anything in the liner, it's going to zoom

73
00:05:07,960 --> 00:05:11,950
‫my viewport directly to look at that object, which is always very handy.

74
00:05:11,950 --> 00:05:17,950
‫So I've obviously created a really, really basic third person platformer here, but you can go wild

75
00:05:17,950 --> 00:05:23,770
‫and add in different objects, have fun, share it with your friends and see if they can beat it to

76
00:05:23,800 --> 00:05:24,550
‫great stuff.

77
00:05:24,550 --> 00:05:26,140
‫I'll see you in the next lecture.

