How do I stop my character from landing and sliding?

0 favourites
  • 6 posts
From the Asset Store
Learn lowercase and uppercase letters in English.
  • Any thoughts on how to fix the landing and sliding?

    I made a video showing the character animation so far and the problem.

    http://youtu.be/lpeutR0LuDg

    Also-- thanks in advance <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I use a variable as a simple "state machine" when controlling a character. I call the variable "stuckin-in-move" and set it to 1 whenever the player should not be able to control the character.

    For example:

    on land>set stuck-in-move to 1+play animation landed

    on animation "land" > set stuck-in-move to 0+set animation to idle

    Then all the controls that move the character or change its animation have a condition: does stuck-in-move=0

    If not, it wont let the players controls move the character or change his animations.

    On top of this, you could do: animation "land" is playing> set vectorY to 0

    cheers,

    Mike Parent

  • Protip: Print screen button is your friend

  • , I tired--

    on land>set stuck-in-move to 1+play animation landed

    on animation "land" > set stuck-in-move to 0+set animation to idle

    Then all the controls that move the character or change its animation have a condition: does stuck-in-move=0

    But my "stand-up" idle animation pops up (I'm okay with that); however, sliding still happened :/.

    I added "On top of this, you could do: animation "land" is playing> set vectorY to 0" but then the character kept re-spawning at 0 and was stuck in a loop.

    Hasuak like my screen shots? Can you recommend a good desktop recording program?

  • The problem seems to be when I have my finger on the left or right arrow key, it causes the character to slide after the land. Working on it again now.

  • My bad. I accidentally left out a critical word in my initial suggestion:

    It should be: Animation "land" has FINISHED, set stuck in move to 0.

    Also, all events that change the animation should check to see if "stuck in move" = 0.

    Also, you could disable the platform movement behavior while the player is playing the land animation.

    I suggest you post your actual capx so someone can help more easily, you say you'e still working on it so you could have a whole new set of different problems in your events by the time someone tried to help you.

    If you don't want to post it, you could email it to and I'll help you resolve the issues.

    cheers,

    Mike

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