"charge"movement

Get help using Construct 2

Post » Thu Aug 29, 2013 11:27 am

Hi All,
im solving the following problem - i want my hero to have a "charge" move, which is a fast movement forward in which he can destroy enemies. I play an one frame animation in this event. So far i couldn't make a soft transition from this move, to his previous state.

If the player isnt moving and just press this action move, my hero don't know to which state he should return - if idle or moving. So right now i can only add walk after this event and it happens that the hero has his walk animation even if the player isnt moving :/.

I should propably add some variables to movement and idle and then detect them? So far i can't figure out how to do that..

thanks a lot!
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Thu Aug 29, 2013 8:01 pm

Sounds like you just need an idle animation? Also just set some up some variables for movement states like 'IsIdle' 'IsWalking' 'IsCharging'.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Thu Aug 29, 2013 9:38 pm

I'd try a Is Idle (Boolean) -> set animation to "idle"
or maybe try a is not Charging(Boolean) - > set animation to "idle "
B
8
S
1
Posts: 31
Reputation: 598

Post » Thu Aug 29, 2013 11:24 pm

thanks guys it works :)
B
8
S
4
G
1
Posts: 191
Reputation: 1,873


Return to How do I....?

Who is online

Users browsing this forum: Akia410, gameba and 10 guests