0 Favourites

How do I group condictions?

  • Hello guys!

    One question : does it's possible to group condictions like we can do as actions with variablers?

    I explain it better : I have same condictions that I repeat many and many times...It can be helpful to group in one thing like one variable that control actions...

    Thank you very much in advance!

  • Hello guys!

    One question : does it's possible to group condictions like we can do as actions with variablers?

    I explain it better : I have same condictions that I repeat many and many times...It can be helpful to group in one thing like one variable that control actions...

    Thank you very much in advance!

    Would Functions be what you are after using?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • now I try Functions....Thx a lot zenox98 !

  • mh...I tried Functions, but the problem is I need to group condictions, not actions...Maybe I wrong something...

  • You can store conditions into functions as well.

  • How group condictions in one function?

  • Could you explain what exactly you mean by grouping conditions?

    Your first question seemed to suggest you needed something like the function-object..

    Maybe there is a miscommunication..

  • Sorry, probably I can't explain the problem : Well...I don't care if I use functions or else...

    I have a lot of events and, for each events, I have many condictions ( that I repeat the same many times )...My questions is if it's possible to write all these condictions one time and call them for the other events...More or less like we can do with variables, but variables call actions not condictions...

    Here, for example, there are a lot of inverted condictions...all these condictions are repeted for a lot of events...it's possible to have one line to call of them?

    Hope it's clear...

    Thank you in advance

  • Sorry, probably I can't explain the problem : Well...I don't care if I use functions or else...

    I have a lot of events and, for each events, I have many condictions ( that I repeat the same many times )...My questions is if it's possible to write all these condictions one time and call them for the other events...More or less like we can do with variables, but variables call actions not condictions...

    Here, for example, there are a lot of inverted condictions...all these condictions are repeted for a lot of events...it's possible to have one line to call of them?

    Hope it's clear...

    Thank you in advance

    I'm sorry, but the picture isn't showing..

  • I can't see the image too.

    If I understand right you have many conditions in a single event like this for example:

    Mouse cursor is over Sprite

    is animation "run" Playing

    Sprite2 Y < 150

    If that's the case, then the first time you use these conditions together, add an action that sets a global variable. Like MyConditions=1

    Then you can use a single condition:

    System - MyConditions=1 --> ...(trigger some actions)

    At the end of the actions set the variable back to zero.

  • thx immortalx! Sorry for my really late reply!

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