How do I overlay animation on my character

Get help using Construct 2

Post » Sun Apr 20, 2014 2:46 am

ok i cant get the arms to animate but i got it! and i am now falling through floors for some odd reason
B
10
S
1
Posts: 97
Reputation: 700

Post » Sun Apr 20, 2014 3:04 am

ok floors are now fixed , umm i need help still ughhh ok ... its coming along let me attach the project so you see where i am

ok as you can see i got the arms, but when i let go of the key how would i get them to disappear?
You do not have the required permissions to view the files attached to this post.
B
10
S
1
Posts: 97
Reputation: 700

Post » Sun Apr 20, 2014 3:59 am

First thing I have one sprite object for the arms. And in that object I have 3 animations "Idle","Running","Attack" I have name this way so when the state is set I don't have to retype the animation name I just put the playerState variable as the animation to play.

ArmObject.jpg


That is why you see the event at the bottom that as long as the playerState is set to something it will set the animation to that set state. So each sprite animation are name corresponding to make it work. Player object has an Idle and Running animation. Having multiple objects isn't the best method.
You do not have the required permissions to view the files attached to this post.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Sun Apr 20, 2014 4:13 am

ok i got the arms to animate now but it only plays once ughhh, i had the darn name wrong the whole time
Last edited by Gussy on Sun Apr 20, 2014 4:15 am, edited 1 time in total.
B
10
S
1
Posts: 97
Reputation: 700

Post » Sun Apr 20, 2014 4:15 am

Yes you have to set the animation to loop in the animation editor
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Sun Apr 20, 2014 4:28 am

GOT IT! ok i'm learning Phoenix i dont know if your a guy or girl but hey BIG HUGS! now i gotta figure how to rid the arms when no keys are pressed that should be easy... hopefully
B
10
S
1
Posts: 97
Reputation: 700

Post » Sun Apr 20, 2014 9:48 am

ok i've come a long ways phoenix but i need help on something simple, as i run and slash things left and right.... the arms are in 2 different spots and i need them to be consistent on both directions here is my project so far
You do not have the required permissions to view the files attached to this post.
B
10
S
1
Posts: 97
Reputation: 700

Post » Sun Apr 20, 2014 1:12 pm

I have to go do Easter activities but you have made enough effort that its only fair I give my capx. (FYI I am using the beta release like I said early you can get the same version I have by downloading the beta at the bottom of the page.)

HERE OF SOME NOTES::
1. You only need the arm pinning to the player not them both pinning to each other.
2. Take the no arm animation and make it the topmost animation for the arms so that it will be the default animation and you won't see the attack animation at the start of the level.
3. I think it may be something with the origin points that is setup in the animation cause you will see in my .capx I was able to just pin and I didn't have to keep updating the position of the arms.
You do not have the required permissions to view the files attached to this post.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Sun Apr 20, 2014 8:16 pm

HA! i'll check your capx out but i dont think i need it ... lol

Yes on #2 ! I was thinking i needed to do that but it didn't pop into my head till this morning, and as for #3 I did fiddle with the origins but then the attack lookd goofy when running in one direction or other. I thought maybe I could use 2 different origins when attacking depending which way the player was facing.

Another Question i have is that i didn't use the animation arms, during the standing still attacks will i be able to still set a bolean on that part of the sword as a collision for enemies
B
10
S
1
Posts: 97
Reputation: 700

Post » Sun Apr 20, 2014 8:25 pm

OH i see what you did nvm looking at your capx helpd , i put image points on my arms and i see you didn't do that thats why mine is all goofy
B
10
S
1
Posts: 97
Reputation: 700

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Allardje, R0J0hound, Rudi55, Vinterstille and 1 guest