Jumping Attack

Get help using Construct 2

Post » Sun May 20, 2012 12:25 am

Hi!

I,m making a Beat em up and I'm wondering how should i set my animation of attack while jumping, my curreny jump is a full animation because i don't want my hitbox to change X or Y. What should i use to align the "jump" with "attack while jumping" animation when the player press attack button while jumping?.

Also is there a way to set a Z axis?

Thanks.
B
7
Posts: 10
Reputation: 666

Post » Sun May 20, 2012 12:34 am

In regards to the hitbox, if you followed the 'how to make a platform game' tutorial (which I HIGHLY recommend), you would see that it is vitally important to make your player an invisible box, then attach a player image to that box. That way, animations will not change the hitbox.

I'm not sure what you mean by 'aligning' these animations... could you be a bit more specific?

A way to set a z-axis? Well, there is no way to do this automatically, however it is definitely possible.

B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun May 20, 2012 1:16 am

That might work if the player would only be able to move in 2 directions.

I kinda made the alignment of the animations, unfortunatelly, if the player press "Attack" when the character is falling, it seems like it makes a double jump.

Here is the .capx
http://dl.dropbox.com/u/80411165/Dungeon-test.capx

Thanks, and sorry if i wasn't able to explain correctly.

Edit:

Move with arrows, "a" is Attack, "s" is Jump.nanuk2012-05-20 01:18:20
B
7
Posts: 10
Reputation: 666

Post » Sun May 20, 2012 1:38 am

Unfortunately, I do not think there is an easy way to do what you want to do, at least with a smooth transition.
I'm stumped, anyone have any ideas?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun May 20, 2012 2:06 am

Well... Thank you anyway Sqiddster =)
B
7
Posts: 10
Reputation: 666

Post » Sun May 20, 2012 10:02 am

Erhmm... Where is the good idea? i still have the problem =(nanuk2012-05-20 10:02:25
B
7
Posts: 10
Reputation: 666

Post » Sun May 20, 2012 11:24 am

The problem lies simply with your animation style. A better way to do it would be to have arms, legs as seperate objects which you could apply events to, but because of your shading that would look awful.
Have you thought of setting the 'attack' animation to the corresponding height frame of the jump animation, so you at least have the same height?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun May 20, 2012 11:38 pm

Yeah, is what i did yesterday and limited the attack to certain frames only, but that's no what i want. I think i have a solution, setting an image point in each frame and when the player attacks in mid air, just spawn another player with the attack animation. Also, i have to limit that attack animation in case it's almost at floor.
nanuk2012-05-20 23:41:40
B
7
Posts: 10
Reputation: 666

Post » Mon May 21, 2012 12:16 am

You don't need to spawn another player - just set its position to the correct image point.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 22 guests