2 animations conflicting

Get help using Construct 2

Post » Sun Nov 25, 2012 12:41 pm

hello,
i try to make a zombie shooting game.i created some animations.my problem is.
i have 3 animations : walk,fire and fire while walking. i created a seperate arm for fire and walk.

i created this conditions.

1- if right pressed play "walk".make "walk arm" visible.

2- if fire pressed play "fire" animation.

3- if walk and fire buttons pressed play "walk" animation and make "walk arm" invisible and make "fire arm" visible.

condition 1-3 conflicting.how can i solve the problem?

sorry for poor english.

thanks.

https://dl.dropbox.com/u/8046259/son.capx
B
5
Posts: 11
Reputation: 822

Post » Sun Nov 25, 2012 2:00 pm

Maybe make the firing and walking a boolean?

1 If right pressed, walking is ture
else walking is not true


2. if fire pressed, firing is true
else firing is not true

3. If Walking true and firing not true play walk. Make arm visible

4. If walking is not true and firing is true play "fire" animation.

5. If walking and firing are true play "walk" animation and make "walk arm" invisible and make "fire arm" visible.


Untested, just thought it up on top of my head.
B
20
S
4
G
2
Posts: 124
Reputation: 2,482

Post » Sun Nov 25, 2012 2:25 pm

thanks for your help but i cant figured out.i tried but cant get it work.
B
5
Posts: 11
Reputation: 822

Post » Sun Nov 25, 2012 2:51 pm

Sure they will conflict ...
Just add a condition that will block the events from conflicting for each of the two events event
For the 1st one :
(Invert) If fire is pressed
For the 2nd :
(Invert) If right is pressed
Whiteclaws2012-11-25 14:52:01
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sun Nov 25, 2012 4:45 pm

sorry i didnt understand can you please sent a printscreen or modifie the capx?

thanks
B
5
Posts: 11
Reputation: 822


Return to How do I....?

Who is online

Users browsing this forum: suicidenutella, Yahoo [Bot] and 0 guests