Touch Controls iPhone - Help Please
JoshKahane
Member Posts: 470
Hi
So I am looking to buy the Express version soon so I can get testing on my iPod Touch but for now I wanted to check something with you, as if this was wrong I wouldn't really know what to do.
In my game I have a ball, and I want it so that when I touch to the left of the ball, it moves left, touch to the right it moves right and same with up and down. Here is what I have done with my Move Right rule:
'Attribute' 'game.Touches.Touch 1.Y' '>' 'self.Posotion.Y'
Accelerate
'Direction: 0' 'Relative to: Actor'
'Acceleration: 100'
Hope that makes sense, just copied what I entered in my rule. Hope you can help, but I heard that testing on the computer is the same it just replaces touch with the mouse but it isn't working if that the case, so any help much appreciated, thanks.
So I am looking to buy the Express version soon so I can get testing on my iPod Touch but for now I wanted to check something with you, as if this was wrong I wouldn't really know what to do.
In my game I have a ball, and I want it so that when I touch to the left of the ball, it moves left, touch to the right it moves right and same with up and down. Here is what I have done with my Move Right rule:
'Attribute' 'game.Touches.Touch 1.Y' '>' 'self.Posotion.Y'
Accelerate
'Direction: 0' 'Relative to: Actor'
'Acceleration: 100'
Hope that makes sense, just copied what I entered in my rule. Hope you can help, but I heard that testing on the computer is the same it just replaces touch with the mouse but it isn't working if that the case, so any help much appreciated, thanks.
Comments
'Attribute' 'game.Touches.Touch 1.X '>' 'self.Position.X'
The reason is movement left and right happens on the X axis. Movement up and down happens on the Y axis.