how to play animation while other is playing ??

0 favourites
  • 5 posts
From the Asset Store
This Student Workbook uses both Construct 3 & 2 encoding. It supplies client-side & php "back-end" encoding.
  • Hello I'm new here !!

    I want to make a war game but I want to play animation while other is playing

    Example : player is running and when I press mouse click I want to stop run animation and run shooting animation ?? how to do that plz. !! and thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • after making both animations and adding a mouse object:

    go to event sheet

    add new event : on any mouse click

    add action : playersprite set animation "whatever you named your running animation"

  • after making both animations and adding a mouse object:

    go to event sheet

    add new event : on any mouse click

    add action : playersprite set animation "whatever you named your running animation"

    No, I mean when I press a key like "D" the player will walk .

    But if the player is walking or running( "D" key is down ) and I press mouse click i want to stop the running animation and play the shoot animation

  • keyboard D key is down >> simulate platform pressing right

    on d pressed >> player set animation "walk"[looping]

    on mouse click >> player set animation "attack"[not looping]

    player on animation "attack" finished >> player set animation "walk"

    if you want the player to stop moving when the attack substitute:

    keyboard D key is down >> simulate platform pressing right

    with:

    keyboard D key is down, and animation "walk" is playing[or animation "attack" is not playing] >> simulate platform pressing right

  • keyboard D key is down >> simulate platform pressing right

    on d pressed >> player set animation "walk"[looping]

    on mouse click >> player set animation "attack"[not looping]

    player on animation "attack" finished >> player set animation "walk"

    if you want the player to stop moving when the attack substitute:

    keyboard D key is down >> simulate platform pressing right

    with:

    keyboard D key is down, and animation "walk" is playing[or animation "attack" is not playing] >> simulate platform pressing right

    Its look god way thank U dear

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