2 animations conflicting

0 favourites
  • 5 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • 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.

    dl.dropbox.com/u/8046259/son.capx

  • 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.

  • thanks for your help but i cant figured out.i tried but cant get it work.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

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

    thanks

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)