How do I On Touch

Get help using Construct 2

Post » Wed Mar 09, 2016 2:06 pm

So I have already created my events using the keyboard for testing really, now I am trying to apply touch to these controls by using the "simulate left,right up etc" action but when I do my sprite only moves like a mili-inch lol.

A better example would be.
On Touch > Collision DPAD_RIGHT > Simulate platformer RIGHT.

Now when I do this the sprite barely moves an inch even though it works perfectly with the right arrow key.
I am not sure what I am doing wrong is there anything that needs to be added to touch commands or ?

Or a better question, how do I set it so that when the player is holding touch over an object to make it act like I am holding down the "Right" arrow key?


The really strange thing is that it works perfectly for jump.. Just not for Left & Right
B
79
S
36
G
22
Posts: 89
Reputation: 17,146

Post » Wed Mar 09, 2016 2:14 pm

I'm certain the problem is with "On touch". This is a trigger event, which occurs only once you touch it. Try "Touch|Is in touch" or "Touch|Is touching object".
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Wed Mar 09, 2016 2:19 pm

grigrizljac wrote:I'm certain the problem is with "On touch". This is a trigger event, which occurs only once you touch it. Try "Touch|Is in touch" or "Touch|Is touching object".



Well I tried the "In Touch" and that works how I need it to, except that I am using a sprite, and when I set it to "Is Touching Object" the sprite that should be running only moves a bare inch when touching the object, it does not even seem to recognize that I am holding down over the object.


EDIT: Oh goodness.. haha I figured it out.. Thanks for the help man :P It was so obvious I can't believe I missed it.. Maybe too much coffee..
B
79
S
36
G
22
Posts: 89
Reputation: 17,146


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Blendi1223 and 48 guests