8Direction on Touch

Get help using Construct 2

Post » Sun Jul 20, 2014 11:39 am

How can I set behavior 8directions on android?
I need to make down and up direction on touch.
B
4
S
1
Posts: 27
Reputation: 410

Post » Sun Jul 20, 2014 12:34 pm

How do you want the touch to work?

you could try something like:

touch.y > player.y - player simulate pressing down

touch.y< player.y
touch.y is not 0 - player simulate pressing up
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 20, 2014 1:41 pm

On touch object.
I need to make object - move down and up.
B
4
S
1
Posts: 27
Reputation: 410

Post » Sun Jul 20, 2014 2:01 pm

It's exactly the same as above..

instead of comparing the y you just use

on touched object - player - 8 direction - simulate control - up
on other touched object - player - 8 direction - simulate control - down
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jul 20, 2014 2:57 pm

arrowexample.capx
You do not have the required permissions to view the files attached to this post.
B
18
S
2
G
1
Posts: 67
Reputation: 1,339


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 11 guests