Skip to main content

Unreal Engine 4 Dev Update #8: New Rifle & Movement Animations

Hi, it's been a while since my last update on the implementation of an RTS camera system. Ironically, that was the part of the project that went through a major change over the past few weeks. More on that in the next update post. Meanwhile I've added the movement and aiming/firing animations from Epic's 'Animation Starter Pack' into my project. However I did not want to change all the character level code into the ASP character that came with the pack. So I just retargeted the skeletons and copied all those animations into my default player/AI characters. I had to create a few new blend spaces and make some changes to the Animation Blueprint, but finally I got the new movement animations up & running without much trouble. It's mainly a matter of getting used to blend spaces and the basic flow setup of animation blueprints. I would recommend the following tutorial series by Epic for anyone having trouble with this matter:

Getting Started: Introduction to Blueprint 3rd Person Game Creation

Anyways, attached below is a recording of the new movement animations in action. It looks so much better now that they actually move around like they have some purpose. Until now, it just seemed like triggered Brownian motions, there wasn't much sense in why the character was running around like that.


I have not done any new recording lately. However I do have a few screenshot around showing some of my work in progress since I uploaded this video. One among them, being the fact that I added the awesome Assault Rifle from the 'First Person Shooter' project in the marketplace. Attaching the weapon to my character did not take much time, but implementing those animations wasn't that easy the first time around. The method that I've implemented is not very efficient. I hope to rectify it once I move the AI code into Behavior Trees. And oh yea, I have added an AI of sorts, actually the most basic AI possible in there right now. I thought of adding the video here, but I'll add it in the next post. This post is already big enough for one of my normal dev updates. But first here are a couple of screenshots of the awesome Assault Rifle getting ready for action:

Locked & Loaded

Training Drill

So looking at the dates, I realize that I'm kind of lagging behind on my dev updates. So anyways, here's a shot of it in action. Added in a muzzle flash as well. Went overboard with a laser at some point as well, but I'm not using it until I get my Aim Offset correct. I keep putting it off since I'm really not interested in working on animations. I'll probably do it when I've taken care of the rest of the interesting/cool stuff. Or as we all know, if it becomes absolutely necessary.

Finally some theatricality and deception. However no moving bullets.

Well that's going to be the last screenshot with those textures and lighting effects. The project is going naked from here on. No more fancy reflections beaming off of the ground material or totally out of fashion materials on the character models. Just the bare minimum from here on. Unless I go prehistoric with the project, I don't think my PC can handle recording videos while running the editor in the background. Besides those were temporary materials anyways.

Anyways, feel free to check out my Youtube channel for more videos. And do subscribe if you feel that they're interesting. Nothing much is gonna happen in those videos, for now. But I hope things will get more interesting as I move on to AI & Turn-Based Logic. So, more videos will be coming up soon, and hopefully some tutorials in the blog as well before I myself forget what I've been doing. So here's a link to my channel:

Stormrage256' Youtube Channel

With that, I end this post. Feel free to comment below or mail me, if you need help regarding anything related to my work. And as usual, I hope to have a next post up soon.

Signing out.

------------------End of Captain's Log - 17th Jan 2015 (way behind schedule :|)-----------------

Popular posts from this blog

Unreal Engine 4 Tutorial: Smooth Zoom using Mouse Wheel for Top Down Template

Well, I had already written a tutorial for implementing Smooth Zoom functionality for Top Down Template. But it was based on keyboard inputs. Since most Top Down PC games use mouse wheel for zoom, I decided to make a tutorial for the same. The core logic here is the same as the one implemented by Ryan Jon for the custom camera in his RTS Community Project. If anyone's interested, they can get the code for the RTS Community Project here:

UE4 RTS Community Project

Anyways, he has replaced the default camera for the characters with a general camera since that's more ideal for developing an RTS game. Since a basic Top Down game with a single playable character does not need a separate custom camera, I decided to implement the same functionality for the default player camera in UE4's Top Down Template. So let's get down to it.

First of all we need to make a custom curve from the content browser. We will be using this curve to define the smooth camera movement while zooming …

Unreal Engine Tutorial: Create Circular Ring Material without Textures

Hi, welcome back for another tutorial. It's been quite a while since I put up a tutorial as I've been busy working on toolkits for the Marketplace. One of my earlier tutorials [link: Unit Selection Decals for RTS Games] had focused on how to create ring materials using textures, as well as using them to display unit selection decals for RTS games. However, a drawback associated with using textures was that it prevented the user from changing the inner & outer radius of the ring. And during prototyping stages of a product, it's far better to implement structures that can be changed easily from within the engine so that you don't have to create a new asset from an external package every time you need to test out a new idea. I've found this approach quite useful while working on my own products. Hence, this tutorial focuses on creating a ring material that can be adjusted both from within the material editor as well as dynamically at runtime.

Alright before we get …

Unreal Engine Diaries #11: Nav Mesh Configuration

[This episode of Unreal Engine Diaries focuses primarily on nav mesh configuration, nav areas & configuration of agent types.

Source: Unreal Engine 4 AI Support Twitch Broadcast with Mieszko: https://www.youtube.com/watch?v=7LaazCv4rB0]

1. The Recast NavMesh has a couple of attributes named 'CellSize' & 'CellHeight' under the 'Generation' section in it's details panel. Together they determine the resolution of the nav mesh & lowering these values can create more precise nav meshes. It could be especially useful when there are lot of holes in the nav mesh due to the surface properties of the terrain. However, lowering them also makes the nav mesh calculations more expensive.

2. If runtime nav mesh generation is enabled, it would be best to set the 'Tile Size' attribute of Recast NavMesh to the minimum viable amount.
3. The 'Min Region Area' parameter which can also be found under 'Generation' section of Recast NavMesh can be i…