Make Actor follow Touch Only on X axis.
CrazyApe
Member Posts: 64
Hello,
I want to make a game that the Actor follows the touch around but only on the X axis. I also want it so people can hold their finger down and move their finger around on the display anywhere but it will only move on the x axis. If you want a example of what I am talking about download Flappy Fall on the iOS App Store (Don't know if on Play Store).
Comments
Constrain the actor to the mouse x position
Rule
When touch is pressed
Constrain attribute self.position x to game.mouse.position x
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thanks!
@FryingBaconStudios One question. If its mouse position will it also be touch?
If in doubt . . . . . try it !
On an idevice your finger is the mouse right?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS