User Tag List

Results 1 to 3 of 3

Thread: Advanced Game Board only works first time (and free match 3 example inside)

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced Game Board only works first time (and free match 3 example inside)

    Hello!

    I've started making a Match-2 game and could do with assistance (feel free to use my example for your own matcher game! It can be changed to match 3 fairly easily!)
    I've managed to get the basic matching working. However, I've been stuck on being able to create a 'suggestion system'. I want each block to store the amount of connecting blocks would like to store the amount of connections on each block in the variable iConnections.

    When pressing the 'right arrow'(Event 16), it should loop through all the blocks and store the connections in its variable. You can see that it is working by hovering over any block with your mouse and reading the debug string.. This works perfectly for the initial board state, but stops working for blocks that get created afterwards. The matching continues to work perfectly however, so I don't understand why the coonnection count falls out of sync.

    I have a feeling it's a silly oversight on my part, so any help is appreciated as I've been stuck for a couple of days.

    Thanks!

    Note that I use AGBO and MoveIt in this example.
    Match.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    You have an array in your binary data - the game won't run unless I delete it. I don't know if you are using it in the game.

    You are running a loop "goa" 9 times - it clearly is running, but I can't find it. Where is it?

    The connections works at random ... sometimes works the first time, sometimes not. I suspect it might be that you are running a loop x number of times - and it might have more connections than x - and so it isn't picking up all of them. I'd play around with For Each loops instead so that it's checking every block.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jan 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janette5 View Post
    You have an array in your binary data - the game won't run unless I delete it. I don't know if you are using it in the game.

    You are running a loop "goa" 9 times - it clearly is running, but I can't find it. Where is it?

    The connections works at random ... sometimes works the first time, sometimes not. I suspect it might be that you are running a loop x number of times - and it might have more connections than x - and so it isn't picking up all of them. I'd play around with For Each loops instead so that it's checking every block.
    The array is indeed not in use for the example I've uploaded but I forgot to remove it from the file as I was trying to reduce it to the bare minimum in order to make it easier for you kind souls to take a look at my problem. Thank you for letting me know! Additionally "goa" was one more item I forgot to remove but I've now changed it to just "a". It's the exact same loop that I run by pressing the right arrow. Essentially it just starts "a" 9 times which in turn starts "b" 6 times, which in turn does the search for connections loop a total of 54 times.

    I've uploaded a new file that:
    1) Removes the data array file
    2) renames the "goa" loop to just "a" which is the same as the loop run on 16. This just means the "connections loop" also will run automatically on startup in row 5 but you can also remove it from row 5 to try it with the arrow key, manually.
    Match1.01.mfa

    I've never seen the connections not work on the very first step (pressing the right arrow before clicking on any blocks / letting it run automatically on row 5), please do let me know if this happens on your end.
    You're right, it works randomly after that and I can't see any reasons as to why..! the 9x6 loop never changes and the block amount seems to be accurate in either case.


    The FOR EACH is a good suggestion.. I was really hoping I'd learn something from whatever my mistake is in the example here but in the meantime I will also try to FOR EACH formula!
    Attached files Attached files

Similar Threads

  1. Match 3 - advanced board game object
    By DEKE15 in forum Fusion 2.5
    Replies: 3
    Last Post: 27th March 2017, 11:40 PM
  2. Replies: 6
    Last Post: 8th September 2016, 10:07 AM
  3. l'objet Advanced Game Board
    By nantouillet in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 9th March 2011, 07:18 PM
  4. Need help converting this to Advanced Game Board
    By jellytot in forum File Archive
    Replies: 0
    Last Post: 16th September 2008, 07:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •