Left and right idle animations arent working

0 favourites
  • 3 posts
From the Asset Store
A complete set of graphical user interface (GUI) to build 2D video games. With wood, nature, & jungle theme
  • I undertsand that ther eare animations overlapping i just dont know how to make them stop

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep. Try to check for degrees in 2 conditions.

    Like:

    -------------------------------------------------

    angle(player.x, player.y,mouse.x,mouse.y) <135 .l

    and

    angle(player.x, player.y,mouse.x,mouse.y) >= 45 l

    -------------------------------------------------

    So you need to make sure that sometimes it is, lets say ">", and sometimes it is ">=".

    You need to make sure that there is no situation when you have lets say exact 45 degrees triggering 2 different events. Also add another condition which will check if required animation is already playing. Like:

    -------------------------------------------------

    if:

    angle(player.x, player.y,mouse.x,mouse.y) <135

    angle(player.x, player.y,mouse.x,mouse.y) >= 45

    (inverted) Player>IsAnimationPlaying "idleup"

    (inverted) Player 8dir is_moving

    than:

    set Player animation "idleup" start from beginning

    -------------------------------------------------

    and check that all your animations set to looping

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