From the course: Unreal Game Mechanics: Camera Walk Action

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Binding effect and player

Binding effect and player

- [Instructor] In order to bring everything together here, we will of course need to set about binding the control keys that will allow us to drive our head bob motion. To do this, as we are going to be using the PC gaming controls of W, S, A, and D to drive our camera shake, we will want to right-click in an empty area of the graph and type KEY W, and now this just removes all of the nodes that happen to have a W in them and leaves us with the key note that we want, and then click to add the relevant node to the graph. What we can then do is tell the game that whenever the W key is pressed, we want it to play the camera shake effect. To do that, all we need to do is connect the W node's pressed output to the play input on the timeline, and then let's also connect the released output to the stop input. Now this will not only play the head bob effect for as long as the W key is held down, but it will also, once the player releases the key, cause the effect to come to a stop. Of course,…

Contents