Movemnt

Bob132546Bob132546 Member Posts: 18

Ive been working with gamesalad for a while now with movement and cant seem to find out how a player can move diagonally if touch is pressed. I know how to move him vertically and horizontally but not sure how to move him diagonally? Is this possible to do and if so does anyone know?

Best Answer

  • ArmellineArmelline Posts: 5,397
    Accepted Answer

    It's a little trickier with motion.linear.velocity.x/y, but you should be able to do diagonals by changing both x and y velocity together.

Answers

  • ArmellineArmelline Member, PRO Posts: 5,397

    There are lots of ways to do this. But it will largely depend on how you're actually moving the player currently. What method are you using to move him?

  • Bob132546Bob132546 Member Posts: 18

    RULE- if touch is pressed - change atrribute - motion linear velocity to 200
    RULE- if touch is pressed - change atrribute - motion angular velocity to -100

  • Bob132546Bob132546 Member Posts: 18

    Changing both?

  • Bob132546Bob132546 Member Posts: 18

    Nevermind, done it thanks

Sign In or Register to comment.