How do I Set UP animations for my character

Get help using Construct 2

Post » Wed Aug 10, 2016 12:42 am

Hello guys, i hope you help me with new problem. Now i am making character , i have all animations for it like run Shoot in run Sit and Shoot in siting position and etc.
Problem is i dont know how to do it right cose with my ways i am geting what i want buT when i pressing forward and then DoWn key my character moving but if i press fire buton he Fire from the Origin point of siting Animation. also i cant fix the problem IF character JUMP and i press DOWN key he doing sit animation in air. iS any idea how to fix That? thank you for any help.
B
13
S
4
G
2
Posts: 34
Reputation: 1,945

Post » Wed Aug 10, 2016 7:00 am

"The problem IF character JUMP and i press DOWN key he doing sit animation in air"

On the condition were you set him to do the "sit animation" add extra conditions to check that is no jumping and is not falling like this:

condition:
on down arrow presed:
player is falling: <inverted to be negative
player is jumping:<inverted to be negative

Action: set player animation to sit
--------------------
Edit: or
condition:
on down arrow presed:
player plataform is on floor:

Action: set player animation to sit
-------------------------------
im not sure i understand the first question but it looks like the run and sit animation the overlap when you press foward and down, do the same as above add to one of the events an extra condition like;

condition:
left arrow is down:
down arrow is down: < inverted

action: set animation to run etc....
B
41
S
25
G
87
Posts: 305
Reputation: 48,088

Post » Wed Aug 10, 2016 7:36 am

hey, about standing up if DoWn key is released is not worked. But i found one quick answer for my problem u can try it too. its player/On animation SiT finished. Play Animation idle.
its works cose normaly Sit animation is 1-2 frames and character standing UP instantly if not u can make a bit Faster animation speed. untill now i no any conflict with that way of finding out. but if someone know anotehr way to do that. (to make character Standing up automatic after release Down key tell me :)
B
13
S
4
G
2
Posts: 34
Reputation: 1,945

Post » Wed Aug 10, 2016 10:30 am

But that one was really helpfull Thank you werry much

condition:
on down arrow presed:
player is falling: <inverted to be negative
player is jumping:<inverted to be negative
B
13
S
4
G
2
Posts: 34
Reputation: 1,945

Post » Wed Aug 10, 2016 3:08 pm

Heeroyuy wrote:hey, about standing up if DoWn key is released is not worked. But i found one quick answer for my problem u can try it too. its player/On animation SiT finished. Play Animation idle.
its works cose normaly Sit animation is 1-2 frames and character standing UP instantly if not u can make a bit Faster animation speed. untill now i no any conflict with that way of finding out. but if someone know anotehr way to do that. (to make character Standing up automatic after release Down key tell me :)



right, i thought you have the problem when you run wich it should be arrow left or right key is down + you press the down key swell

but if is just going back to standing UP you can do in two ways,

1way
condition:
on down arrow key released=> action=> set animation to "idle" or stand up

2-way
condition
player is not moving:

action: set animation to idle or the name of standing up

i hope that helps if you post a quick cap it will be quicker to fix
B
41
S
25
G
87
Posts: 305
Reputation: 48,088

Post » Wed Aug 10, 2016 3:39 pm

Heeroyuy wrote:hey, about standing up if DoWn key is released is not worked. But i found one quick answer for my problem u can try it too. its player/On animation SiT finished. Play Animation idle.
its works cose normaly Sit animation is 1-2 frames and character standing UP instantly if not u can make a bit Faster animation speed. untill now i no any conflict with that way of finding out. but if someone know anotehr way to do that. (to make character Standing up automatic after release Down key tell me :)


but that you have the problem that it will never stay down on sit position when the key is down, it will just play sit animation and go back to stand up. i dont know the settings you need, but i will have the two options:

1- for quick sit down and up for when im just trying to avoid and object coming to me:
on key down pressed: set animation to sit

2-for when i really need to sit down and stay down because they firing me with a turret none stop to my "head" for example, or something like that.

in wich case it should be

-on key down is down: set animation to sit

-on key down released : set animation to standing up
B
41
S
25
G
87
Posts: 305
Reputation: 48,088

Post » Thu Aug 11, 2016 12:42 am

thanx, i will keep that in midn if i get some problems with that ways i am using in future. For now i think i found out ;D Its Just too much animations there is about SIT. animation from siting position, then need back to siting animation and then back again to stand. i am working on it alrdy 3 days non stop. Well Main character animation is the most important thing :) thank you again will will use ur help as good tips on next games :)
B
13
S
4
G
2
Posts: 34
Reputation: 1,945

Post » Thu Aug 11, 2016 6:04 am

@Heeroyuy no problem m8,

if you have that many animations maybe will be better to control them by "variables"
example is "firing" and set them to
1= firing stand up
2=firing on siting
3=firing runing
and so on........

good luck
B
41
S
25
G
87
Posts: 305
Reputation: 48,088


Return to How do I....?

Who is online

Users browsing this forum: katzin, Yahoo [Bot] and 7 guests