(SOLVED) How do I remove the "slidding" on Android?

Get help using Construct 2

Post » Fri Nov 06, 2015 5:09 pm

hello to all

in my game i use the touch plugin, and i have one little problem

when in my game udner android i keep my finger on the screen and slide to the left or right the sprite walk on that direction and falls on the lava.

how to remove that and only say when touch object, and NOT if the payer keep touching the object?

i dont want my sprite move if the payer keep his finger on the screen, i want just the sprite move when the payer 'tap' the button.


thanks
Last edited by imothep85 on Fri Nov 06, 2015 9:16 pm, edited 1 time in total.
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792

Post » Fri Nov 06, 2015 5:11 pm

Couldn't you just use "on tap" or "on touch start" or "on touch end"?
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 » Fri Nov 06, 2015 5:23 pm

well i mean under my android if i keep my finger pushing or slidign on the button the character goes to that direction, but i want that just work when i "tap" the button.
actually my events are

Touch>"is touching Left_button" > player > simuate platform pressing left

same for the right direction
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792

Post » Fri Nov 06, 2015 5:40 pm

You should create another event, for this one does exactly what you don't want..

How long would you want the player to move on tap?
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 » Fri Nov 06, 2015 6:04 pm

well just move 1 step
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792

Post » Fri Nov 06, 2015 6:45 pm

And what would one step be in the platform behaviour?
Sounds like you want to have some kind of grid-based movement rather than platform behaviour..
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 » Fri Nov 06, 2015 9:14 pm

thanks LittleStain i solved that :D
B
35
S
13
G
6
Posts: 1,645
Reputation: 8,792


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests