Horizontal movement issue.
cucurbit
Member Posts: 68
Hello!
I would like to make horizontal movement (x - axis only) with the following: tap near the edge of the screen for sharper turns of an actor, which is 'flying' to the top of the screen. I was trying many different options, with the following I was not satisfied with (for the ipad):
If game.touch.1.x > 384 and game.touch.count = 1
change velocity direction: 0, speed: game.touch.1x - 384
If game.touch.1.x < 384 and game.touch.count = 1
change velocity direction: 180, speed: 384 - game.touch.1x
I've also tried the timer here every 0.001 secs, I've tried without the count, I've also tried the actor to follow my finger, but then I could not change the speed of it.
What is the biggest problem is that when I am holding the finger onto the screen, and then putting second one it only remembers that the finger is on the screen and its first position.
For example: I want the actor to move right, so I hold the finger on the right side of the screen, then while holding last finger, putting the second finger on the left. When I take off the right finger it still goes right.
Is it possible to fix it with game salad, other than custom buttons (I can't control the sharpness of the turn then)?
I would like to make horizontal movement (x - axis only) with the following: tap near the edge of the screen for sharper turns of an actor, which is 'flying' to the top of the screen. I was trying many different options, with the following I was not satisfied with (for the ipad):
If game.touch.1.x > 384 and game.touch.count = 1
change velocity direction: 0, speed: game.touch.1x - 384
If game.touch.1.x < 384 and game.touch.count = 1
change velocity direction: 180, speed: 384 - game.touch.1x
I've also tried the timer here every 0.001 secs, I've tried without the count, I've also tried the actor to follow my finger, but then I could not change the speed of it.
What is the biggest problem is that when I am holding the finger onto the screen, and then putting second one it only remembers that the finger is on the screen and its first position.
For example: I want the actor to move right, so I hold the finger on the right side of the screen, then while holding last finger, putting the second finger on the left. When I take off the right finger it still goes right.
Is it possible to fix it with game salad, other than custom buttons (I can't control the sharpness of the turn then)?
Comments
Really stuck with that one