0 Favourites

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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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 :-)

  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
1,068 148,691
Reflextions's avatar
Reflextions
Unread hot topic
0 Favourites
[plugin] firebase
687 65,164
cybertron7's avatar
cybertron7
Unread hot topic
0 Favourites
[PLUGIN] Canvas
627 186,709
zenox98's avatar
zenox98