Enable/Disable Touch Plugin

Get help using Construct 2

Post » Wed Aug 07, 2013 8:03 pm

Hello,
I'm making an in-game tutorial...

Is there a way, in context, to:

On start of layout: Disable touch input
                    blah blah tut stuff
                    wait stuff
                    blah blah tut stuff
                    wait stuff
                    blah blah tut stuff
        PRINT   "Try it now!
                    Enable touch input


I hope that makes sense, please ask if it didn't! This is vital for my tutorial
Thanks!

EDIT:

I'm using the touch plugin (Logo is a finger pointing down.)
This allows mouse input too! (It is PC + mobile!!)Sulli2013-08-07 20:08:41
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 07, 2013 8:18 pm

Also, the reason I can't just let the player have touch enabled at the start is because if he/she were to "Try it now" too soon... they'd cock up the tutorial!
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 07, 2013 8:37 pm

there is no need to disable the plugin, just add a condition to touch events so they don't respond while the tutorial is running. You can do this by making a global variable. Easiest way would probably be to set groups of event to active and or inactive.
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 » Wed Aug 07, 2013 9:03 pm

I've made a quick example capx of basically what LittleStain was just saying:
http://db.tt/SWcrBoxh

Enjoy.
B
9
S
2
G
2
Posts: 59
Reputation: 1,024

Post » Wed Aug 07, 2013 9:53 pm

@Hoyer thanks! (Great idea too @LittleStain !)

-Hoyer- I'd literally just given up using local keys... it's taken over 30 lines using them! Gah... you've done it in so few....

Also, thank you for introducing me to "Set group" ACTIVE STATE -- I do overlook some things!


Gosh I over complicate things! Thank you! I was driving myself crazy with my method :-)Sulli2013-08-07 21:59:08
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 07, 2013 11:51 pm

@Sulli

Sure, we all do that sometimes, don't we
Just remember, asking for help is always an option.
Glad I could be of help and that u even learned something from it
Good luck with the project
B
9
S
2
G
2
Posts: 59
Reputation: 1,024


Return to How do I....?

Who is online

Users browsing this forum: DJKeefy, mekonbekon, OddConfection and 10 guests