Movemnt
Bob132546
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
-
Armelline Posts: 5,363
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Answers
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?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
RULE- if touch is pressed - change atrribute - motion linear velocity to 200
RULE- if touch is pressed - change atrribute - motion angular velocity to -100
Changing both?
Nevermind, done it thanks