priyanka19's Forum Posts

  • I have been working on a Match-3 game, thinking this will be a good way to learn Construct. I found a great tutorial on tutsplus and finished it and then added to it.

    Now there's special candies and booster in my game. All of them work.

    The problem comes when a level is successfully finished.

    I have made a group for what happens when required scoring is done within given moves which triggers a pop-up congratulating the player.

    Now the problem is that sometimes the pop-up comes out too soon . For example, sometimes, after the score is reached, matches keep on being made and new candies drop into place which make even more matches. The pop-up doesn't seem to take these new matches into account.

    I am thinking of using recursive function but can't seem to make it work.

    I also looked at WaitEvent plug-in but couldn't make it work either.

    Please help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:3bztz17p]"You do not necessarily need a sample greater than two points. A vector should be sufficient. "

    I was actually getting ahead of myself when I said that - I was thinking what if there were two intersecting star groups like in the image below.

    Anyways, any help is very welcome. This thing has gotten into my head and it just won't let go. Very annoying.

  • I am wondering if it is possible to swipe objects to rotate in both clock-wise and anti-clockwise manner about a center? Like if I wanted to rotate the stars about the center, just move 1 place up or down depending on whether I wanted clockwise or anticlockwise motion, then would it it be possible.

    I think one would have to swipe across at least 3 stars to know in which direction the stars are supposed to move but how to actually code it?

  • Thank you so much. This code is what I needed. You've been very helpful.

  • Thanks so much for your reply.

    But this isn't what I wanted. I am very sorry that I didn't explain myself well. English isn't my mother-tongue.

    What I want is something like this - say in an 1 dimensional array, the elments are 1,2,1,3, 5, 0, 0, 0

    So the highest element with 0 as its value is 6.

    This is what I want to be able to do - a way for the game to return the value of 6.

    Thanks.

  • Hi,

    Newbie here and so this might be a silly question.

    I have an 2-d array where each element can have a value from 0 to 5. Now I want the game to be able to select the highest element whose value is not a 0 and display it as a text.

    Is there any way to do that?