Better support for logic flow?

Discussion and feedback on Construct 2

Post » Tue Feb 19, 2013 5:20 am

Are there any plans for better supporting logic flow in Construct 2?

I am practicing using the IDE by making a simple tic-tac-toe game, but the lack of first-class support of logic flow makes the event sheet look significantly uglier than necessary.

When I made a simple tic-tac-toe game in XNA and C#, I created a function to check and see if the current player has won:

        private void CheckForWin(TicTacToePlayer player)
            bool[] row = { true, true, true };
            bool[] col = { true, true, true };
            bool[] diag = { true, true };
            for (int loop1 = 0; loop1 < 3; loop1++)
               for (int loop2 = 0; loop2 < 3; loop2++)
                    if (grid[loop1,loop2] != player)
                        row[loop1] = false;
                        col[loop2] = false;
                        if (loop1 == loop2)
                            diag[0] = false;
                        if (loop1 + loop2 == 2)
                            diag[1] = false;
            if (row.Any(x => x) || col.Any(x => x) || diag.Any(x => x))
               winner = player;

Duplicating this kind of logic in the event sheet is painful to look at, and that's just for putting together one of the simplest games known to mankind.

Yes, this IDE is marketed to non-coders, but having support for basic logic flow in the "action" section of the event sheet would go a long way to making it more useful for puzzle games.
Posts: 1
Reputation: 402

Post » Tue Feb 19, 2013 9:20 am

Programs like these tend to make complicated things easy and easy things complicated. In this case you might look into finding or writing a plugin. iirc there are already some "match-3" plugins that should make this pretty straightforward.Tokinsom2013-02-19 10:58:51
Posts: 1,794
Reputation: 18,909

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests