Put on screen controller(Up,Down,Left,Right) Actions
TouchCollection touchCollection = TouchPanel.GetState();
foreach (TouchLocation tl in touchCollection)
{
if (tl.State == TouchLocationState.Pressed)
{
position.Y = position.Y - speed;
}
if (tl.State == TouchLocationState.Released)
{
position.Y = position.Y + speed;
}
}
Can you help me guys, I can`t create a touch event of my game. Thank in
Advance :)
No comments:
Post a Comment