Support for both Mouse and touch in MULTICONDITIONED event h

Get help using Construct 2

Post » Mon Sep 05, 2016 8:05 pm

I can do support for a single condition event for ex(when pressed A "or" on sprite touched ->move player to up ) by making "or" block but for multi conditioned event for ex ( when pressed up "and" compare variable=0-> move Player to up ) in this situation how can I make touch support for this multiconditioned event please HELP..
B
9
S
4
G
1
Posts: 89
Reputation: 1,488

Post » Tue Sep 06, 2016 1:10 am

If I understand what you mean, you want to say something like...

If Clicked or Touched AND another condition?

Just put Clicked and touched in and "OR"
and put your next condition as a condition below that one.
Eat ALL THE BACON!
B
45
S
17
G
3
Posts: 290
Reputation: 4,993

Post » Tue Sep 06, 2016 3:15 am

then that condition also comes in "or" block
B
9
S
4
G
1
Posts: 89
Reputation: 1,488

Post » Tue Sep 06, 2016 8:46 am

If you use the Touch object, it emulates the mouse.
In that case, using any "On touched" or "Is touching" condition will be the same as using a "On object clicked", "On mouse button down".

You cannot determine exactly what mouse button you are using , for that you ARE to add and use the mouse object to your project and use the appropriate condition.

But for a general "user input, either using touch or mouse", the generic Touch input is enough and does not require any extra condition.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,319
Reputation: 87,487

Post » Tue Sep 06, 2016 3:36 pm

@kyatric so you mean if I just put for ex.(object is in touch it automatically emulates object is clicked for computer users ).
B
9
S
4
G
1
Posts: 89
Reputation: 1,488

Post » Tue Sep 06, 2016 4:13 pm

Yes.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,319
Reputation: 87,487

Post » Tue Sep 06, 2016 7:10 pm

I didn't know that thanks a ton @kyatric
B
9
S
4
G
1
Posts: 89
Reputation: 1,488


Return to How do I....?

Who is online

Users browsing this forum: bluesun66 and 10 guests