Construct 3 suggestions & ideas

Suggest and vote on ideas for Construct 3! Please note this is only one aspect of planning. We do not guarantee any features here will be implemented, even if they are top-voted ideas. The aim is just to collect feedback. Remember to search for existing submissions before adding an idea, describe your ideas as comprehensively as possible, and vote for plausible ideas that are well thought out. Please see our full guidelines on suggesting features.

76 Vote

Set boolean by expression

Currently you can only set a boolean to True or False via a dropdown list. We need the option to set it to another boolean via expression (such as setting an object's boolean to a function parameter.)

 

This is a pretty hard limitation and currently makes a simple 0 or 1 number variable the better option. I propose one of two solutions:

 

A) Add a "Set boolean by expression" action that has a text field instead of a dropdown list.

 

B) Add "expression" to the dropdown list which either creates or enables a text field underneath.

 

In the case of setting a boolean function param, I suppose it would have to be something like B..

  • Matt Gruber
  • Oct 24 2019
  • No status
  • Attach files
  • tarek2 commented
    5 Apr 11:23am

    For some reason did post the Link on my first Post and I can't find the ability to edit it so I will post it again sorry for that
    https://construct3.ideas.aha.io/ideas/C3-I-1330

  • tarek2 commented
    5 Apr 11:20am

    Awesome idea voted, but why just stop on booleans?

    Why not extended to any Variable (Global, Local, Instance Variable, Booleans) etc..... that definitely will give the power to do any crazy advance stuff easily, also why not add swell the ability to reference or change any Variable Dinamicly without having to pick and reference first the Object

    I requested here the ability to refference dynamically any Variable but it could be merged with this so we have the combo (Reference or Change) any variable dynamically



    What do you think?

  • Geoff Burrows commented
    28 Nov, 2019 10:06am

    Adding my votes for this. Since the overhaul of Functions, being able to manipulate booleans would expand on the power of Construct significantly. 

     

    For example, the following would be possible:

    1) Parse strings as booleans: if a string is "" then 0, else 1.

    2) An option to set one boolean's state to another's.

    3) The ability to read visible/enabled/etc. states from objects and behaviours and set booleans based on the results.

     

    While this is all possible with integers dressed up as booleans, having "native" support would make functions and general use far more streamlined.

     

    I realise this would require quite some work on the boolean system, but this functionality would be very useful and much appreciated! :)

  • Guest commented
    26 Nov, 2019 03:57am

    A visual to why this idea is pure gold. The  lines below could have been half and have the spaces in between them removed without compromising clarity.

  • Guest commented
    6 Nov, 2019 11:35am

    +1

    https://construct3.ideas.aha.io/ideas/C3-I-1124

  • Kids Crowns commented
    2 Nov, 2019 01:02am

    Big agree

  • Everade commented
    26 Oct, 2019 08:28pm

    Yes please!
    1 = true
    0 = false

    Opens up so many possibilties.

    This is another case where something that's supposed to be newbie friendly, ends up limiting normal and advanced users.


    Would be really great if it's either entirely replaced or being added as a second option as stated by Matt.

  • +41