Groups suggestion

0 favourites
  • 8 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • Busy with some events and groups when I realised that a group like class would rock !!!

    I mean, like, have a special group, and use that kind of group in your application with the same name. And when you disable that group ... ALL groups get disabled having that name.

    Just imagine having lots of groups like "audio" over various sheets and layouts... applied in all sorts of sub events ...

    Then in the main menu you disable group audio .. and boom ..everywhere audio is disabled.

    This functionality kinda resembles css classes ... and would totally rock cs2 usability in sense of ease of disabeling an element on the fly throughout your project.

    Lennaert

  • Just create a new event sheet called "audio", with a "audio" group on it. Now import that event sheet into wherever you want, and disable the group whenever you want.

    Using groups with the same name in different layouts is bad pratice. You can easily make a group global by adding it to an event sheet, and referencing that event sheet everywhere else though.

  • Also families would help, don�t they?

  • Another solution is to have a function call on a common event sheet. The function can either turn off sounds itself, or turn off groups in the active event sheet. Whatever you want really!

  • How can you disable Groups? Last time I looked there was only an activate Group command. Did I miss it? <img src="smileys/smiley3.gif" border="0" align="middle" />

  • Just create a new event sheet called "audio", with a "audio" group on it. Now import that event sheet into wherever you want, and disable the group whenever you want.

    Using groups with the same name in different layouts is bad pratice. You can easily make a group global by adding it to an event sheet, and referencing that event sheet everywhere else though.

    would require extra event sheets .... or globals.

    The suggestion was for a new special group, just for this purpose.

    Or perhaps a tick option in the group edit, 'class group' or something.

    It would be far easier then tinkering around with extra sheets..

    this way you could simply ref the group from any layout...

    Also families would help, don?t they?

    not quite

    Another solution is to have a function call on a common event sheet. The function can either turn off sounds itself, or turn off groups in the active event sheet. Whatever you want really!

    woudl require functions etc etc

    With a simple few subs below a group you can really manage grouping activity very effectiely ... and simple

    How can you disable Groups? Last time I looked there was only an activate Group command. Did I miss it? <img src="smileys/smiley3.gif" border="0" align="middle" />

    select actioon -> activate group .. and edit the action to "disabled"

  • You could just use a global variable instead. Have all audio code in each place be a subevent of an event with the condition if audio_on = 1. Setting it to 0 deactivates it everywhere with one action.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • audio is just one application ...

    spawning ...

    menus ...

    controls ...

    movements ...

    you name it ...

    groups are very versatile .. this will add greatly to ease of implementing global or partial disabled/enabled elements for anything created in cs2 with a very clear purpose and do right by its name :) groups

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