Sprites Overlap with animations!

Get help using Construct 2

Post » Fri Apr 05, 2013 5:19 pm

Greetings there! ^.^
What an amazing forum full with all u people helping the new beginners!

Well i thought i'd ask for help here after trying to search for it and solving it on my own for like 3 hours.. Well the problem is;

I have inserted a sprite into the game with many different animations - however the problem is - when i press D to move right and A to move left and left mouseclick to attack - WHILE holding D or A and pressing the mouse click it ignores the attack and keeps on running. Only way to press the mouse button to attack is if the sprite is standing still (not holding A or D) - any help?
B
5
S
1
Posts: 70
Reputation: 809

Post » Fri Apr 05, 2013 5:20 pm

I want the D to keep moving Right BUT when i press the mouse click it should interrupt the moving - but yet again keep moving AFTER the animation with the attack is finished.
B
5
S
1
Posts: 70
Reputation: 809

Post » Fri Apr 05, 2013 11:46 pm

Try this.
It is for 4 way movement but I am sure you can adapt it. As for starting to move after the animation I would suggest a flag that is essentially sets a value to 0 when the direction button is pressed and another event that sets it to a 1 when the button is released. Then create an event that checks for the flag after the attack animation has finished playing and starts the movement back up if it equals 0, something like that.
B
6
S
3
G
1
Posts: 102
Reputation: 1,379

Post » Sat Apr 06, 2013 1:24 am

Thanks alot!
B
5
S
1
Posts: 70
Reputation: 809


Return to How do I....?

Who is online

Users browsing this forum: Braus and 11 guests