Left and right idle animations arent working

0 favourites
  • 3 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I undertsand that ther eare animations overlapping i just dont know how to make them stop

  • 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 1 visitors browsing this topic (0 users and 1 guests)