Enable/Disable Touch Plugin

  • 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 <img src="smileys/smiley4.gif" border="0" align="middle" />

    Thanks!

    EDIT:

    I'm using the touch plugin (Logo is a finger pointing down.)

    This allows mouse input too! (It is PC + mobile!!)

  • 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!

  • 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've made a quick example capx of basically what LittleStain was just saying:

    db.tt/SWcrBoxh

    Enjoy.

  • 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 :-)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Sulli

    Sure, we all do that sometimes, don't we <img src="smileys/smiley12.gif" border="0" align="middle" />

    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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)