Hello all,
I found a very helpful piece* that aided me in creating the player movement I wanted where my player will move towards the location of the mouse click (when held down).
I want to be able to use the touch function to simulate the mouse left button down to recreate this movement on my iPad but can't figure it out.
It's probably right in front of me but I can't seem to get it sorted.
Any help would be amazing. Thanks!
*Here is the original piece: bit.ly/122WCbu[url=http://bit.ly/122WCbu]http://bit.ly/122WCbu[/url]
Hey, is this what you wanted : DiabloMovement.capx
All I did was change the mouse events to touch events with touch object and then change the collision variables from mouse.x/y > touch.x/y
I left the originals so you can see what I change. Also removed the other group as I wasn't doing anything.
That was the original file I found and based this test off of. I'm going to check out your changes right now. Really appreciate your help!
I would suggest using the path finding plugin to do this. It can plot the where to go based on your touch xy.
Develop games in your browser. Powerful, performant & highly capable.
Thanks guys, I'm going to look into both options right now. This is my first time building anything and have to say that this a pretty amazing application.
Again, really appreciate the help.
Just wanted to let you know, the combination of the two suggestions was exactly what I was looking for.
Thank you both again!