Animation Woes

Get help using Construct 2

Post » Fri Mar 28, 2014 7:41 pm

What I'm trying to make is a character that moves in a "Castlevania" esq way.

I can get many of the animations to work properly but they conflict with each other a lot. I'm fairly new with construct and have searched for a few hours and haven't found much to help me.

If you go onto Youtube and look up something like Castlevania SOTN Richter you will be able to see what kind of thing I am going for. (Walk, jump, throw, whip, slide, ect).

I just can't figure out a good system to make it work with. I have searched and tried many things but for some reason I just can't get it to work.

Any help would be greatly appreciated.

EDIT: My main problem at the moment is the fact that if I am moving he will not properly use either of his attacking animations (E and space bar) however, if I am just standing still then he will usually do them no problem.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 76
Reputation: 949

Post » Fri Mar 28, 2014 9:47 pm

If you are moving, then you are probably telling C2 to play the moving animation before the attack one has had a chance to barely get started...
B
99
S
35
G
20
Posts: 438
Reputation: 17,910

Post » Fri Mar 28, 2014 10:15 pm

AllanR wrote:If you are moving, then you are probably telling C2 to play the moving animation before the attack one has had a chance to barely get started...


I understand that, but how do I fix it?

I do tell the game to stop him from moving when the button gets pressed but it doesn't make a difference.
B
8
S
1
Posts: 76
Reputation: 949

Post » Fri Mar 28, 2014 10:52 pm

Check this other topic with a similar question that I answered recently: How do I stop an animation from overriding other user input?
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Fri Mar 28, 2014 11:07 pm

7Soul wrote:Check this other topic with a similar question that I answered recently:


Thanks a lot, I must have overlooked that thread when I was searching.

Now my whipping animation works perfectly to the right but appears very low when I do it to the right..........

My knife throwing animation doesn't do that and I have it set up the same way so I have no idea whats going on there.

Also does anyone know why my character appears slightly inside the floor he is standing on?

All help is appreciated, thanks.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 76
Reputation: 949

Post » Sat Mar 29, 2014 6:17 pm

You're rotating the whip and since its origin is not centered on the image of the whip itself, it rotates off center. You should use the action "mirror" to flip things from right to left. The knife is properly centered so you don't notice that it rotated.

I don't see the character inside the floor here
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sat Mar 29, 2014 6:23 pm

7Soul wrote:You're rotating the whip and since its origin is not centered on the image of the whip itself, it rotates off center. You should use the action "mirror" to flip things from right to left. The knife is properly centered so you don't notice that it rotated.

I don't see the character inside the floor here


Oh I see thanks a bunch for that and he does sink in about a pixel or two into the floor and the platforms. He does it a lot if you destroy two of the blocks and only stand on one of them.
B
8
S
1
Posts: 76
Reputation: 949

Post » Sat Mar 29, 2014 6:25 pm

Ah, you just need to fix the collision polygon on the "player" object. The two points on the bottom are 1-2 pixels from the very bottom of the sprite
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sat Mar 29, 2014 6:57 pm

7Soul wrote:Ah, you just need to fix the collision polygon on the "player" object. The two points on the bottom are 1-2 pixels from the very bottom of the sprite


Ok thanks, that helped a little bit.

Do you think the way I am handling projectiles is going to be efficient later on in development? They just seem sort of buggy the way they are now.

I know I'm asking a lot and I appreciate all the help.

Like you said to use mirroring and that worked beautifully for the whip but when I try and do that for the "thrown" weapons they just fly in the same direction.

Controls: A and D move. W Jump.
S Changes Subweapon.
Space Throws Weapon. E uses whip.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 76
Reputation: 949

Post » Sat Mar 29, 2014 7:30 pm

In my game (the one in my signature) I also have lots of weapons and you can shoot left and right. The way I did it is that the player has a variable called "direction", and when he faces right direction is 1, and left is -1. Bullets also have this variable, and it sets if it is mirrored or not

The weapons all move based on math, so no behaviors. And instead of setting its angle, I use a variable to tell the angle of the weapon movement.

Example:
Untitled-1.png
You do not have the required permissions to view the files attached to this post.
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests