Why is there no longer a boolean in Gdevelop?

Hello, I’m asking for help
I’m creating a game from a Generated Dungeon type guide
the guy from the guide has this action:

“Set the boolean value of variable Active of Spawners to true”
Where “Active” is a value and “Spawners” is a group of objects.
I can’t continue creating the game because I can’t find the “boolean” action
Do you know what this might be about or how to do it in a different way?

Przechwytywanie

1 Like

Hi there and welcome! Spawners is an object (or group of them), Active is an Object Variable of the Spawner objects (or objects in the spawner group). First you can create an object variable named Active in each object that is in your Spawner group. For the variable type drop down list (default is Number), open the drop down menu and select Boolean.

To change it to true, in GDevelop editor actions side, type “value”. Now you will see change the value of a variable, and change the value of an object varialbe. Select the one that says object. In the pane that opens, select your spawner object group as the object, and for the variable select “Active”. Then it will give you actions to set it true, false, or toggle.

1 Like

Could you send a picture of the code you made? Because I still don’t really know how to do it, thanks in advance

1 Like

First go into all the objects in the spawner group and give them each a variable named Active and change the variable type to a Boolean

Next follow the detailed series of pictures that show how to search in Actions for phrase “value” and from the top results, select 'Change variable value General/Objects/Variables (and select your group instead of one single object), and select the Boolean variable that you have previously created in each object that is a member of the spawner group, so the variable values listed will change into the correct options to set your boolean to True.





And what it looks in your event when you are done like when you are done.

1 Like

thank you very much for your help, you saved me

1 Like

I’m glad and happy game developing!