WEBVTT

00:00:03.400 --> 00:00:05.362
Here's Gem Island, with Claude Code

00:00:05.362 --> 00:00:07.806
running in the project, as in lesson four.

00:00:07.812 --> 00:00:09.611
GameStudio's rigged character comes

00:00:09.611 --> 00:00:11.214
from a kit that Claude builds,

00:00:11.214 --> 00:00:13.727
so ask Claude to swap the player for one.

00:00:14.300 --> 00:00:15.763
Claude deletes the old player,

00:00:15.763 --> 00:00:17.620
builds a rigged character from the kit,

00:00:17.620 --> 00:00:20.076
and gives it the player's components and the camera.

00:00:20.163 --> 00:00:21.835
It's an armature called Player,

00:00:21.835 --> 00:00:23.420
with a skinned mesh.

00:00:24.000 --> 00:00:26.433
Its animations are Blender actions.

00:00:26.577 --> 00:00:28.261
To see them, turn the Console into

00:00:28.261 --> 00:00:30.310
the Nonlinear Animation editor:

00:00:30.397 --> 00:00:32.331
click its Editor Type button.

00:00:32.900 --> 00:00:34.775
Choose Nonlinear Animation.

00:00:35.567 --> 00:00:37.007
Drag its top border up to

00:00:37.007 --> 00:00:38.743
make room for every track.

00:00:39.533 --> 00:00:41.141
Here are the character's clips:

00:00:41.147 --> 00:00:44.114
Idle, Walk, Run, Jump, Fall and a few more.

00:00:44.316 --> 00:00:46.847
Each one is a Blender action on its own track,

00:00:46.847 --> 00:00:48.932
and the game plays them by name.

00:00:49.500 --> 00:00:51.480
Now wire them up, with no code.

00:00:51.567 --> 00:00:52.995
The armature is still selected,

00:00:52.995 --> 00:00:54.539
and its Game panel in the Properties

00:00:54.539 --> 00:00:56.449
lists the components Claude gave it.

00:00:56.536 --> 00:00:58.295
Click Add Component.

00:00:59.000 --> 00:01:01.944
The list is long, so scroll it up to Animation.

00:01:02.500 --> 00:01:05.026
Choose Locomotion, under Animation.

00:01:05.600 --> 00:01:07.383
Scroll down to its settings.

00:01:08.900 --> 00:01:11.356
Locomotion names a clip for each gait:

00:01:11.443 --> 00:01:13.637
Idle, Walk, Run, Jump and Fall,

00:01:13.637 --> 00:01:15.141
the kit's own names.

00:01:15.146 --> 00:01:17.741
It picks one from how the character moves.

00:01:18.300 --> 00:01:19.804
Press F5 to play.

00:01:21.033 --> 00:01:22.879
Click Play on the title screen.

00:01:22.879 --> 00:01:25.138
That also hands your keyboard to the game.

00:01:25.700 --> 00:01:27.448
Hold W, and it runs:

00:01:27.592 --> 00:01:29.125
Locomotion plays the Run clip

00:01:29.125 --> 00:01:30.919
as soon as it's fast enough.

00:01:31.500 --> 00:01:34.002
Turn with D and press Space, and it jumps:

00:01:34.089 --> 00:01:36.260
Locomotion plays the Jump clip on the way up,

00:01:36.260 --> 00:01:38.252
and Fall on the way down.

00:01:38.833 --> 00:01:40.987
Shift Escape gives you the mouse back,

00:01:41.567 --> 00:01:43.396
and F8 stops the game.

00:01:44.067 --> 00:01:46.883
That's an animated player, with no code.

00:01:47.155 --> 00:01:50.041
For moves of your own, like a landing or an attack,

00:01:50.081 --> 00:01:52.583
ask Claude for an animation graph.
