Togglable menu example

This forum is currently in read-only mode.
From the Asset Store
Unlock platyers earning coins, and save it with Localstorage
  • Hi! New Construct Classic user.

    I've spent a few days trying to create a menu bar that has the option to be toggled off, and only show when the Alt key or F10 is pressed (can be configured to use any other key combination). It uses Python Scripting because it expands on the menu bar example made by R0j0Hound.

    I haven't found on the internet any example that fully works (they have troubles hiding again the menu bar), and even R0j0Hound's fantastic example of a Popupmenu required a hack in order to work, so I thought it would be a good idea to share the proper way to code it, which requires using two hooks. <img src="smileys/smiley1.gif" border="0" align="middle" />

    The example file can be downloaded here: dropbox.com/s/wi3m62yewi6pwzd/togglemenu.zip

    I added some extra code with example implementations of some basic menu functions, to make it easier to use. If you need more advanced gui features, I suggest using the plugins GWEN or cGUI.

    There's still a minor visibility glitch while navigating between the first two menus. If someone finds how to fix it, I'll update the file.

    I love construct classic despite its bugs and outdated documentation, the only thing I don't like about it is that there's no easy way to copy .cap files, limiting it to one-programmer teams. If that problem was fixed it would be an extraordinary tool. I would use Construct 2, but HTML5 is a bit limited in the power and features department. <img src="smileys/smiley19.gif" border="0" align="middle" />

    I would attempt to fix it myself, but there's no way I can pay the 200 pounds for the "user license" of the propietary library the editor uses. I would rather pay that much for the Construct 2 license. <img src="smileys/smiley17.gif" border="0" align="middle" />

    I also would want to apologize for not making the link clickable, but the forum doesn't allow me to make hyperlinks until I get 500 reputation. <img src="smileys/smiley7.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)