Greetings again,
Having followed most of the steps the training stream here https://forums.unrealengine.com/showthread.php?72308-Training-Stream-Creating-a-2D-Side-Scroller-Part-2-June-9th-2015, I have made some progress in a 2D game I’m trying to make. Of course, being someone who knows nothing about coding and basically trying to build something from scratch via tutorials and such, I have hit a wall about something a lot of people here will find ridiculously easy to solve.
I have managed to attach an attack animation and a lovely little projectile. It works fine.
I have two problems though. I have seprate animations for attacking while running and attacking while jumping. I need them to be added to the blueprint as well. For running, first I thought I could somehow make the game ask whether or not the character was moving on the X axis, branch to the original animation if it was true, and the other animation if it was false. I found “ismoving on ground” and thought this would be it, but it wasn’t. When I do that the character only uses the new animation even if it is not moving. So I know that is not the one. It doesn’t even know if its moving on X axis. I got stuck there and naturally I could not move on to the jump attack one as well.
The second problem I have is the spawn location of the projectile. I want the game to move the spawn location if it is using another animation. The weapon shifts upwards because normal attack is like a kneeling pose and running is a standing pose so there are differences.
For reference as to how the blueprint looks at the moment, here is a screenshot. It is basically the same one done in the training video here. I just need to work my way from that, without dramatically changing it if possible because I know my questions may be answered in part 3. Unfortunately we have no idea when that will be released.