Control Camera and game.Touches.Touch 1.Y / 1.X
H
Member Posts: 6
Hello,
We try to control an actor with the touch event on a scrolling scene. The actor have the Control Camera behaviors, it's ok, it goes where and like we want in the 768x1024 initial area.
When clicking outside of this area, the actors go back, don't want to go out.
We have make some "Display Text" of x and y of the moving actor, and of the game.Touches.Touch 1.Y and game.Touches.Touch 1.X values.
The x and y of the actor can be 1056 and 2056, the x and y of the touch (or mouse) never goes higher then 768/1024. The x an y referential of the mouse seems to follow the camera.
He have check it by moving the objet with keyboard key, outside the 768/1024 initial display.
We say to the Object to move to the position of the mouse ... so it never goes to an x > 768 in our portrait orientation ....
Maybe something is not set up correctly or we don't understand correctly the touch event ?
Thanks for your help
We try to control an actor with the touch event on a scrolling scene. The actor have the Control Camera behaviors, it's ok, it goes where and like we want in the 768x1024 initial area.
When clicking outside of this area, the actors go back, don't want to go out.
We have make some "Display Text" of x and y of the moving actor, and of the game.Touches.Touch 1.Y and game.Touches.Touch 1.X values.
The x and y of the actor can be 1056 and 2056, the x and y of the touch (or mouse) never goes higher then 768/1024. The x an y referential of the mouse seems to follow the camera.
He have check it by moving the objet with keyboard key, outside the 768/1024 initial display.
We say to the Object to move to the position of the mouse ... so it never goes to an x > 768 in our portrait orientation ....
Maybe something is not set up correctly or we don't understand correctly the touch event ?
Thanks for your help
Comments
We have found, with this topic : http://gamesalad.com/forums/topic.php?id=5897
Let's create now :-)