So I've been playing around with the capx file and this is what I have so far:
SaveTouchPosition
The sprite moves and saves to position as far as I can tell but when I touch it again, it doesn't move... Also the sprite seems to be in the top left corner and I'm not sure why?
Needing assistance!
Doesn't seem to work at all on the ipad 1st gen!
Develop games in your browser. Powerful, performant & highly capable.
Could I have a look at the cap.x file please! :)
Cant seem to get it to work!
Brilliant!
Your a STAR!
Hi Kyatric,
How would I go about saving touch positions using global variables? or Arrays which I haven't used yet nor no much about...
Hi,
I want to know if its possible to save on-touch end positions? For example I touch the screen to move an object and on release, I want the object to stay in its current position and when I touch the screen again, I can move it further...
Sure you can: Link
I tested it on iPad 1st gen and it works fine! Its very rough but at least I know its possible...
Cheers man!
I've for rough example working! ;)
Hi Everybody,
Has anyone attempted "Touch" Swipe gestures for mobile/tablet devices?
Is it possible and if so, how?...
Any help would be appreciated! :)
Hi guys,
I used Accelerometer events because Gyroscope events don't work on the iPad 1st gen where I begun testing but I think they work on iPhone 4 and iPad 2.
Like I said this is a very basic example and it is far from perfect plus its not working on all mobile and tablet devices.
That's your problem, It doesn't work on Android devices. I have only tested it on iPad and iPhone and it works fine. Ill try and look into it for Android devices.
Ive updated the file! Try it now!
Quick point to make: Make sure you are running ios 5!
What did you test it on?
Yes it is very much possible, after hrs of pulling my hair out ive finally figured out how to achieve it. Ive tested it on iPad 1st gen and iPhone 4.
Here it is: Accelerometer Test
Its very basic but it works! :)
Hi Hayato,
Could you add a capx file of your findings?
I'm currently working on motion controls for the iPad 1st gen and am yet to be successful.