Ability to disable specific conditions or actions within an event

I think it will be helpfull if were possibel to “comment” some conditions or actions for debug purposes.
The way things are now it’s necessary to delete de conditions or the action to test if it’s the culprit for a bug.
I’m thinkig of the way is done in programming languages where one can transform a line or a group of lines in a comment to avoid its execution.

2 Likes

You can disable events and their subevents. I assigned it to the “d” key but you can right click and choose [toggle disabled]

Events editor - GDevelop documentation

2 Likes

Thank you Keith.
This one I didn’t know. Learning everyday :smiley:

1 Like

I’ve also noticed that i can only disabel the entire event.
What I’m proposing is to disable one or more conditions or actions of an event.
Anyway disabling an event already can be useful.

I’ve moved this over to feature requests and renamed it into the naming of how this works within the IDE.

To add some context: My understanding is this one isn’t possible out of the box due to how event object lists are built and processed.

This doesn’t mean it’s never going to be possible or this request won’t happen, just adding detail on why it doesn’t work that way today (if I remember correctly, at least)

That said, as a workaround, just right-click on the event, add a subevent from the menu, then drag the condition or action to that subevent and disable that single subevent.

4 Likes

Hello, is this ever added to the Engine yet?

nice workaround though :grin:

I came to request this same thing (disable actions, individually). And I did my due diligence of searching first. :slight_smile:

But please add my “vote” to the feature request. And thanks Silver-Streak for the workaround. It’s better than duplicating the whole event as a backup.

I thought this was about adding adding an action to disable other events, which would actually be very cool.

1 Like

Agree with this. There is a way to do it with variables but an action like this would be much easier