Move character

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey guys,

I created a character and set two rules to move him left and right. So far so good, but if I move the character right he doesnt stop when I stop moving him... I have to press left and after a few seconds he stops.

I want him to spot automatically when I stopp pressing the move left/right button. How do I fix that?

Greetings

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Have you got 2 booleans set up for left & right...in the right button do if touch is inside change attribute "right" to true and in otherwise set it to false.

    Now in the character do if right is true...move and do same for left.

    It sounds like your nearly there but you need to change it to false in the otherwise section of the button rule.

    Darren.

    image
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Much better but the character still slides a bit away when I stopp moving him...

    mhmm :/
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I also didn't use touch, I used "key" is "down".. maybe that helps?
  • UtopianGamesUtopianGames Member Posts: 5,692
    How are you moving him? sounds like your using accelerate if he keeps moving.

    Have you tried just using move?

    Darren.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yeah I am using accelerating.... Okey it works :)

    Do you also know how to solve the problems:

    1, To jump while I am moving? For jump I set change attribute to selfMotionLine Y to 100...
    2, When I fall down from a wall, when the actor hits the ground he jumps back upwards,but I want him to stay at the ground...

    Thanks UtopianGames :))
Sign In or Register to comment.