Hi,
So I am trying to make a breakout game... but I have problem with the paddle, I don't use a mouse input but a touch one and whenever I stop touch the screen the paddle is moving to the left corner of the screen.. How can I make the paddle stay in the same position as before I stop touch the screen?
Cheers,
rodionu
I´m not sure i understand what u say, but i think i this:
On touched object -> set X : object.x, set Y:object.Y
On any touch end -> set object.x: X, set object.y: Y
(Y an X are global variables)
Please check it out.. . Also I don't need the .Y position, just the .X.
EDIT: I can not insert a link!
Develop games in your browser. Powerful, performant & highly capable.
When not in touch the value of touch.x = 0 as is the value of touch.y..
So you will have to create an action to set the touch.x and touch.y to the desired x and y when not touching.