Melee Attack Problems

Get help using Construct 2

Post » Mon May 13, 2013 3:05 pm

Hi, I'm new to Construct 2 and the forums and I'm trying to get my learning on by making a small platform game. I haven't actually started to design the game yet since I'm currently designing another game that will be developed in Unity.

So far however, I followed all the steps in Ashleys platform tutorial and then began to modify everything to learn what I need to create my own game later.

I've tried to search the forums without luck but since I'm not really down with the lingo yet I might have missed some information. If there's already a post or tutorial that covers what I need to know I would very much appreciate a friendly nudge in the right direction.

Ok, so here goes. One of the things I did different from the tutorial is the attack. Instead of jumping on the enemies I opted for a horizontal melee attack (attack left and attack right, based on which way the player is facing) executed by pressing the Space Bar. The attack animation (a single sprite with only one frame) works well in both directions and it kills the enemies as it should. I still have two problems I need help solving though.

1. I want the attack animation to run ONCE when I press the Space Bar and then go back to the animation interrupted by the attack animation. At the moment it runs continuously for as long as the Space Bar is held down. I tried to play around with the animation settings a little but it seems more like an event problem.

2. I want to be able to make the same kind of attack while in the air. That is, when I jump (using Platform Behavior) or fall (using Platform Behavior). And then go back to the jump or fall animation until Space Bar is pressed again (or the character has landed). Is it my usage of the Platform Behavior that restricts and prevents me from customizing this?

Don't have access to my .CAPX right now but will try to share that and/or some screens of the event sheet here later.
Posts: 2
Reputation: 429

Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, brainhome, iceangel, MPPlantOfficial, Phobos70, Smileh and 3 guests