User Tag List

Results 1 to 6 of 6

Thread: Compare 5 Objects or more (Slot machine)

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Compare 5 Objects or more (Slot machine)

    Hey,
    i'm creating a slot machine (5 reels) and everything works fine, besides the "Winningcheck"
    because i dont have any idea how to check if there are 2, 3,4 or 5 matching animations frames in a row.

    I have three winning likes (as you can see in the picture), one line for one row.

    My slot machine is looking like this:
    Unbenannt.jpg

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, whilst this may not help I thought I would throw a few ideas after developing slot machines myself in fusion.

    My first one was similar to yours and for my winning check routine I actually did "collision check" or "overlapping" check of each objects on the winning line and did it that way, unfortunately that meant a lot of predefined "win checks".

    My last way I did it was have each symbol have an alterable value, so for cherrys the value was 1 and jackpot was say 5 and others in between, you can then simple check the win line positions but use a calculation to detemrind if its a win or not based on there alterable value. It made things easier doing it this way.

    Hope this helps.

  3. #3
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Gibbon View Post
    Hi, whilst this may not help I thought I would throw a few ideas after developing slot machines myself in fusion.

    My first one was similar to yours and for my winning check routine I actually did "collision check" or "overlapping" check of each objects on the winning line and did it that way, unfortunately that meant a lot of predefined "win checks".

    My last way I did it was have each symbol have an alterable value, so for cherrys the value was 1 and jackpot was say 5 and others in between, you can then simple check the win line positions but use a calculation to detemrind if its a win or not based on there alterable value. It made things easier doing it this way.

    Hope this helps.
    Your second solution sounds easy, but I did not really get the way of realizing it (the calculation).

    Thank you for your answer

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    MrNaif's Avatar
    Join Date
    Jul 2017
    Location
    Belarus
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When all thing are rolled, run for each loop for each column,on each loop add this alt.value to total_sum(alt.value of some placeholder) and then compare if sum is equal to something---do something(after running all for each loops)

  5. #5
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MrNaif View Post
    When all thing are rolled, run for each loop for each column,on each loop add this alt.value to total_sum(alt.value of some placeholder) and then compare if sum is equal to something---do something(after running all for each loops)
    Well thank you, that's a good solution

  6. #6
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    3,851
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. Slot Machine game example
    By SergioAndre in forum Guides, Tutorials, Examples, Widgets
    Replies: 9
    Last Post: 28th July 2017, 06:47 AM
  2. Bar7's Slot Machine HD Pro
    By Danny in forum Android Released Games & Apps
    Replies: 0
    Last Post: 16th April 2014, 03:49 PM
  3. Slot Machine
    By MikeR in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 4th June 2011, 04:20 AM
  4. Exemple Slot Machine.
    By SpringUp in forum File Archive
    Replies: 3
    Last Post: 3rd April 2011, 05:56 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
  •