In the latest episode, you will be shown how to add sprinting movement to the player-controlled character created during the previous tutorial, giving your player two speeds to use – walking and running. You will be shown how to add sprinting to the character and how to modify the movement values in the engine, so both the walking and sprinting speeds can be customized. In addition to adding and tweaking sprinting, Nick shows you how to optimize the Player.cpp and Player.h files by introducing and explaining the programming practice of « Forward Declaration, » a time saver for compile times, particularly on large projects.
By following along with the tutorial and using the .cpp and .h file that you created during the first tutorial, you will finish with a player-controlled character that can sprint, which you can drag and drop into your own projects.
00:00 Intro
00:48 Forward Declaration
03:44 Creating Player State
04:54 Adding Member Variable
05:40 Defining the Add Member
08:18 Adding Input
11:22 Adding Sprint Logic
13:36 Sprinting in game
CRYENGINE – The most powerful game development platform is now available to everyone. Full source code. 5% Royalties. No license fee. Join us over at http://www.cryengine.com
Subscribe: https://www.youtube.com/cryengine?sub_confirmation=1
Add us on Twitter: https://twitter.com/cryengine
Follow us on Facebook: https://www.facebook.com/cryengineofficial/
Join the discussion on our Forum: https://forum.cryengine.com/ and/or CRYENGINE Discord: https://discord.gg/cryengine
Browse our Marketplace: https://www.cryengine.com/marketplace
#cryengine #cpp #programming
Voir sur youtube