User Tag List

Results 1 to 3 of 3

Thread: selecting objects with values

  1. #1
    No Products Registered

    Join Date
    Sep 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    selecting objects with values

    Hi

    I've ben working on a turn based game where each player has a gauge that fills over time. the player whose guage fills first gets to move and attack for a certain amount of time while the other players don't. Once time runs out the active players guage is set back to zero and the other players guages continue to fill until the next player's guage is full and it becomes his turn.

    I have one problem though. How do I pick an object that has a value over a certain amount and turn a flag on? If two players have a full guage at the same time I only want to pick one of them to turn its flag on making it the active player. It sounds simple but I've tried to do this and encountered some trouble. Any help would be greatly appreciated. Thankyou


  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: selecting objects with values

    you could have a kind of switch to decide who gets to go first if both players have a full gauge.

    Condition:
    *only one action when event loops
    player 1 gauge = full (100%)
    player 2 gauge = full (100%)

    then
    set a value 'player turn' to random (2)

    then the value if its 0 or 1 decides who gets to go first.

    value 'player turn' = 0 set flag 1 on
    value 'player turn' = 1 set flag 2 on

    haha does that make sense? it makes sense in my head..

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: selecting objects with values

    There is a "pick one at random" condition under the special object you can add to anything you only want to affect one object.

Similar Threads

  1. Selecting Multiple Objects by Alt Vals
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st December 2013, 05:43 AM
  2. Values from random objects
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th May 2011, 06:04 PM
  3. Selecting other objects behind active objects?
    By LeeJiHoon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th April 2008, 02:43 PM
  4. Selecting objects behind combo box
    By twister in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2007, 06:35 PM
  5. Selecting Objects by Value?
    By YAS in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 31st August 2007, 09:34 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
  •