-
XMouse and YMouse
Hey,
So I am trying to make something of a drag your finger and it shoots type thing.
where I start my drag on one object by Repeat while mouse is pressed and mouse pointer over object.
Then end by *negate* repeat while mouse is pressed. -Create object and set object speed to blank etc...
But the problem is, I can't set the direction of my object to where I dragged my finger. With a PC app I would just say direction of mouse but I can't do that with an app. I tried to use XMouse and YMouse positions but when I run it on my ipad it won't even load the frame. Any ideas?
-
Re: XMouse and YMouse
It should work with the mouse : mouse coordinates return the position of the current touch.
If your application crashes, send it to me.
-
Re: XMouse and YMouse
Just place the multitouch object in your frame and use X Touch (Last New Touch) and Y Touch (Last New Touch). Replace 'repeat while mouse is pressed' with 'a touch is active', same with the negated one.
If you want to test it on your PC it will still work; the mouse emulates the touch screen.
-
Re: XMouse and YMouse
There are expressions in the multitouch object that return the angle and DeltaX/DeltaY values of the touch which are worth looking at.
-
Re: XMouse and YMouse