User Tag List

Results 1 to 7 of 7

Thread: random card draw help

  1. #1
    No Products Registered

    Join Date
    May 2008
    Location
    U.S.A.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    random card draw help

    Could someone provide an example of an application where 2 random cards are drawn from a deck? Like in poker. How would I do this? Either example or just tell me. THANKS

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random card draw help

    You could use a List object and write in each possible card on each line of the list. Make the object invisible and keep it out of the way so the player can't see it.

    Then pick a random line from the list, remove that line (as we don't want it to be taken again), then pick another random line!

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: random card draw help

    Random Pool Object?
    .:::.Joshtek.:::.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    ZayLong's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random card draw help

    You could also use the Random Pool object, Make it hold 52 numbers, and when you draw a card, the Random Pool object will take a number out of the pool, then you could make the cards an Active Object, and depending on the number in the Random Pool you can change the animiation or Direction.

    You could even use a Conter animation instead.

  5. #5
    No Products Registered

    Join Date
    May 2008
    Location
    U.S.A.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random card draw help

    i don't have the pool object, and there is no way to pick a line from the list object, it has to be compared to something.

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: random card draw help

    I do this a pretty cheap way....
    Using the pick a random object in a zone.

    I have my 52 cards and place them off screen in a location.
    No other objects are at this location (zone)

    I then use a condition to pick one object at random in a zone and move that card where I need it.

    If you visit my website and download the video poker source code you will see exactly what I am doing.

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: random card draw help

    The List object idea i posted does work, as i have used it before. Very similar to the pool idea people posted, but it's a little less automated.

Similar Threads

  1. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 03:33 AM
  2. Whats up with this random draw mfa?
    By ratty in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 25th February 2013, 07:45 PM
  3. Random Speed + Ypos at random times
    By Keehan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th May 2011, 05:25 PM
  4. Assign random word to card
    By Ela15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd June 2010, 08:51 PM
  5. [Screen Draw Object]Bug with Draw Line
    By LB in forum Extension Development
    Replies: 1
    Last Post: 2nd June 2009, 12:32 AM

Posting Permissions

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