dupuqub's Forum Posts

  • The origin point is actually the current tile inside the "for each tile".

    On the start of layout I give a pass through every tile and set every possibility, then the mouse is used only as a debug method for seeing those decisions that were already made.

    To select a match, you could choose a random tile, then see if it has some possible match, if it hasn't then you choose another random and so forth.

    To select a match inside the tile it would be nice if it were also random, but in a way you cover every possibility so the game doesn't look to be prioritizing horizontals or verticals or anything else.

    Feel free to ask for any further help.

    Cheers.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It wasn't a bug, here you go.

    github.com/dupuqub/constructs/blob/master/Match_Predict.c3p

    Feel free to ask anything, but you'll find (by moving the mouse around) that every possible match for every tile is already present in the tile itself. All you have to do is choose one.

  • I am working on a sample to solve your problem, not coding directly on your project.

    I believe I've found a minor bug in the process, meaning it is possible to handle this bug (if it is a bug), but it would be much simpler if it was fixed (again, not sure if it is a bug).

    I'm currently waiting for a response from the devs, I'll let you know when everything is sorted.

  • Thanks a bunch! that's it.

  • Is it possible, using "8direction" and "Solid" to collide some objects, but not others? I understand that it is possible to do with physics, but without physics is what I would need.

  • on a second thought, you should check for at least 2 tiles far from the origin, like below:

    because there may be a match like the one below:

  • Hi there, I would make something like this:

    1. check every tile for a potential match (see if Y top/bottom or X left/right are the same tile)

    2. store that information in the tile.

    3. check the list of potentials to see if there is any tile around them that match their needs.

    I really think this solves it, but let me know :) I could do some code if necessary.

  • In your screenshot "TimeStamp" is an auto-complete and indicates what value you should put between the parenthesis.

    Since you want the actual month, according to the actual time/date, you can make use of the expression .now within the Date plugin.

    + System: On start of layout

    -> Text: Set text to Date.GetUTCMonth(Date.Now)

    Will display "5" in your text object.

    As indicated, the month is returned from 0 to 11 (0 is January, 1 is February, etc...).

    If you want to display the month in "letters"/as word, you likely need to set up an array that contains your months and display it accordingly.

    See this example c3p made in r201

    This should be in documentation somehow, its pretty useful and straight forward. I had to come here after visiting the docs.

  • Hi there, very interesting question!

    I experimented with some things to see how to do it and it seems that "8direction" and "MoveTo" are very clunky, but "Physics" was very accurate.

    Hope this helps, feel free to use it whatever way you want to and to ask any questions.

    github.com/dupuqub/constructs/blob/master/Tri_Drag.c3p

  • This version has a checkbox for the loop, hope it helps.

    Also I repositioned the elements a bit so the tutorial message is displayed in case the user forgets to input the text or to press "PREP TEXT".

    Cheers!

    github.com/dupuqub/constructs/blob/master/Reader.c3p

  • There were somethings that were unclear for me in your code.

    I tried to understand the main features you needed and made something for you to check out and see if it helps.

    Feel free to use it as you please and ask anything about it.

    https://we.tl/t-UAJs2IY009

  • YES, thanks!

    You are a life saver.

  • I believe you may use BBcode along with some string treatment, try passing something like "[color=#FF0000]A[/color]lphabe[color=#FF0000]t[/color]" as a string to a Text object.

    You may declare the color inside a variable first and call it dynamically:

    C0 = "#FF0000"

    "[color=" & C0 & "]A[/color]lphabe[color=" & C0 & "]t[/color]"

    For the string part, suppose you have:

    S0 = "Alphabet"

    You can then use mid(S0, 0, 1) to get "A" and mid(S0, len(S0) - 1, 1) to get "t".

    Of course you can do that dynamically too, or whatever way suits you best.

  • 1. Imagine you have some overlapping cards.

    2. Then you hover your mouse through them.

    3. Then you ask to focus in the uppermost (z-index) instance of this card object.

    4. C3 then gives you NOT the uppermost (z-index) object from a list of overlaps.

    5. C3 instead gives the first created instance of said object.

    ----

    I cannot seem to do that in C3, although it is very common practice everywhere else, for instance, in HTML development and Unity and UE4.

    I am used to when asking for an instance of an object, getting the highest one in the z-index order or at least having this possibility.

    ----

    Is this a bug?

    Am I not seeing something clear?

    Is there an easy way of doing this without having to manage my own z-index micro-engine in C3?

    Thanks in advance, I appreciate any feedback.

  • I found out that these lines work best because using "is down" instead of "press" and "release" will have a couple of frames where the DragDropped object is still a little bit dragged.

    Thanks for the light.