0 Favourites

how to play animation while other is playing ??

  • 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

  • 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

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
1,941 263,316
FlyingRam's avatar
FlyingRam
Unread sticky
763 305,702
asikanddestroy's avatar
asikanddestroy
Unread hot topic
0 Favourites
What are you playing?
135 15,352
Tetriser's avatar
Tetriser