Togglable menu example

Post your own tutorials, guides and demos.

Post » Thu Nov 08, 2012 2:00 pm

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.

The example file can be downloaded here:

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.

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.

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. DrJones2012-11-08 14:14:16
Posts: 6
Reputation: 606

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests