Diablo Style Movement on Touch?

Get help using Construct 2

Post » Sun Feb 24, 2013 3:56 am

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: http://bit.ly/122WCbuhttp://bit.ly/122WCbu
B
17
S
8
G
1
Posts: 25
Reputation: 2,649

Post » Sun Feb 24, 2013 12:53 pm

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.
B
24
S
11
G
5
Posts: 140
Reputation: 5,004

Post » Sun Feb 24, 2013 5:39 pm

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!
B
17
S
8
G
1
Posts: 25
Reputation: 2,649

Post » Sun Feb 24, 2013 6:06 pm

I would suggest using the path finding plugin to do this. It can plot the where to go based on your touch xy.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sun Feb 24, 2013 9:34 pm

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.
B
17
S
8
G
1
Posts: 25
Reputation: 2,649

Post » Sun Feb 24, 2013 10:48 pm

Just wanted to let you know, the combination of the two suggestions was exactly what I was looking for.

Thank you both again!
B
17
S
8
G
1
Posts: 25
Reputation: 2,649


Return to How do I....?

Who is online

Users browsing this forum: jeffige, TheHat, Yahoo [Bot] and 1 guest