GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Copying an action into conditions could add the condition with the action's comparison value.

Open Bouh opened this issue 1 year ago • 2 comments

Description

When working with variables, you always have to look for the condition or action that goes with them. The idea is to eliminate the need to enter and search for a condition or action.

Solution suggested

The approach would be as follows:

1 - I create a variable action DoorOpen = FALSE 2 - I copy the action into the press paper 3 - In the conditions I want to check that DoorOpen = FALSE, I paste the contents of the press paper which is the action, and it is converted directly into a condition.

This eliminates the need to search condition menus. And saves time entering the variable and its value, since everything is taken from the action.

This applies to variables, but I imagine it could be extended to almost any condition/action.

Alternatives considered

We do it like we always doing it by searching in lists of events.

Bouh avatar Sep 10 '23 09:09 Bouh

I've already thought about it. It could even be enabled dragging an action to a condition list (and vice versa) with a visual indicator that the action will be transformed into the corresponding condition.

AlexandreSi avatar Sep 11 '23 07:09 AlexandreSi

There is a problem with that suggestion:

We can copy conditions and actions at the same time by holding shift and selecting multiple.

What would happen if I copy a variable condition and action at the same time, then try to paste it at the condition section? Would it also paste the action as condition, and I would have two duplicated conditions? Would this suggestion only apply if I were holding only actions at the clipboard? Would not it be confusing?

RebornOfc avatar Sep 11 '23 16:09 RebornOfc