Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • Codelikeme_CPP4_src.rar

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

In this episode of unreal engine C++ tutorial series, I am going to show you how to play an animation montage through the C++ code. First I am going to define a UAnimMontage variable in the header file to hold kick and punch animation montages. We can assign animation montages to these variables in the editor. Then a new input actions for kick and punches, those actions will be bind to the PlayerInputComponent for relevant kick() and Punch() functions. These functions will play the animation montages assigned for above mentioned variables.

password=codelikeme_cppkick

Files

Previews only

Unreal Engine C++ #4 - Playing Animation Montages

Project Files : https://www.patreon.com/posts/43501610 In this episode of unreal engine C++ tutorial series, I am going to change implement a darker stage arena for the characters to fight and in this arena, there are spotlights which keep pointed to the player and enemy characters as they move around the arena. I am going to implement these target light actors with C++. Basically you will learn here, how to reference an external actor object in the level and how to find the rotation the the light should face using FindLookAtRotation defined in KismetMath library. The rotation calculation operation will take place in a private function and this function will be called in 2 places. First, in OnConstruction() function and second in tick(). The OnConstruction function will be called whenever the actor is placed, moved or property changed similar to the construction script in blueprints. We can use this to keep the light targeted towards the target actor in the editor before game is played by setting the actor rotation as calculated in above mentioned function. Support my work : https://www.patreon.com/codelikeme Like my facebook page for more content : https://www.facebook.com/gamedevelopersclub/ Follow me on twitter : https://twitter.com/CodeLikeMe2 Follow me on reddit : https://www.reddit.com/user/codelikeme #CodeLikeMe #unrealengine #ue4 #indiegamedev #CPPno

Comments

No comments found for this post.