priyanka19's Recent Forum Activity

  • So this is my game so far. I have simplified the code a little, so only the basic functionality is there. The problem as always is when the game is successfully completed, the Pop-Up congratulating the player doesn't wait for the automatic matches to complete.

    https://dl.dropboxusercontent.com/u/218196592/new.capx

    Now adding a wait for 1 sec or 10 doesn't work because I can't know exactly how long to wait. Automatic matches could happen once, or 1 dozen times or never - there is no set number.

    A0Nasser - Thank you again for offering to take a look at my problem.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you so much for your offer. Will get back to you.

  • Instead of using Wait, I am using audio tags (that play when a match is made and candies drop) to start the Pop-Up. It probably is all wron, but that seems to work but only if match is made once.

    Now sometimes matches and subsequent candy drop can happen for a while and that's where the game doesn't work anymore. Either the pop-up ignores the other matches or it takes every match as a new one and pop-up every single time.

    This is really frustrating. I am ready to tear my hair out.

  • 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.

  • [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?

priyanka19's avatar

priyanka19

Member since 6 Jun, 2014

None one is following priyanka19 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies