User Tag List

Results 1 to 6 of 6

Thread: scoring problem PLZ READ

  1. #1
    No Products Registered

    Join Date
    Sep 2011
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    scoring problem PLZ READ

    i am making a fighting deathmatch game that has a Top-down perspective, it involves bullets n such, but i don't know to put together the scoring system to show who killed the most by the end of the match.

    here's how i want it to work:

    you kill bob = 1pt for you

    bob kills you = 1pt for bob

    bob kills john = 1pt for bob

    who ever gets the most points by the end of the timer wins.

    i'm using global values as the players health. can anyone help me out on how i can do this?

    edit: i forgot to mention that there will only be 1 player, and the other 5 opponents will be cpu

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Pyrasia's Avatar
    Join Date
    Sep 2008
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scoring problem PLZ READ

    How many players will there be at max ? 4 ?
    You might be able to make a loop at the end of the match, to pair player 1's and P2's score, and P3' and P4'. Then pair the greater score between p1p2 and p3p4 for the winner.

    I am not sure if there's any extension that could pick the highest score.

  3. #3
    No Products Registered

    Join Date
    Sep 2011
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scoring problem PLZ READ

    i forgot to mention that there will only be 1 player, and the other 5 opponents will be cpu

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scoring problem PLZ READ

    I'm guessing you're a beginner so here's the simplest way I can think of without using fastloops:

    Let's say MaxScore and Winner are global variables whose initial value is 0.

    P1Score > MaxScore
    -->Set MaxScore to P1Score
    -->Set Winner to 1
    P2Score > MaxScore
    -->Set MaxScore to P2Score
    -->Set Winner to 2
    P3Score > MaxScore
    -->Set MaxScore to P3Score
    -->Set Winner to 3
    P4Score > MaxScore
    -->Set MaxScore to P4Score
    -->Set Winner to 4
    P5Score > MaxScore
    -->Set MaxScore to P5Score
    -->Set Winner to 5
    P6Score > MaxScore
    -->Set MaxScore to P6Score
    -->Set Winner to 6

    After you run through these six events, "Winner" will contain the number of the player who won. In the event of a tie it'll favor the player with the biggest player number.

  5. #5
    No Products Registered

    Join Date
    Sep 2011
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scoring problem PLZ READ

    Quote Originally Posted by UltimateWalrus
    I'm guessing you're a beginner so here's the simplest way I can think of without using fastloops:

    Let's say MaxScore and Winner are global variables whose initial value is 0.

    P1Score > MaxScore
    -->Set MaxScore to P1Score
    -->Set Winner to 1
    P2Score > MaxScore
    -->Set MaxScore to P2Score
    -->Set Winner to 2
    P3Score > MaxScore
    -->Set MaxScore to P3Score
    -->Set Winner to 3
    P4Score > MaxScore
    -->Set MaxScore to P4Score
    -->Set Winner to 4
    P5Score > MaxScore
    -->Set MaxScore to P5Score
    -->Set Winner to 5
    P6Score > MaxScore
    -->Set MaxScore to P6Score
    -->Set Winner to 6

    After you run through these six events, "Winner" will contain the number of the player who won. In the event of a tie it'll favor the player with the biggest player number.
    so will this work for one controllable player and 5 other non-controllable opponents? and i am not really a beginner, could you show me how to do it with the fastloops? and what if i wanted to display the scores of each character on the top right corner, will that cover it?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scoring problem PLZ READ

    What does it matter who controls the players?

    Here's how to do that exact same thing with a fastloop:

    Code:
    When the game is over, run loop "FindWinner" six times.
    
    On loop "FindWinner"
    +Global Value( loopindex("FindWinner")) > MaxScore
      -->Set MaxScore to Global Value( loopindex("FindWinner"))
      -->Set Winner to loopindex("FindWinner")+1
    To display the scores you can use the counter object.

Similar Threads

  1. GF2 not scoring
    By mojoz in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 6th April 2011, 05:30 PM
  2. MMF2 Extension Loading Problem! Users/Devs Read!
    By Novabrain in forum Multimedia Fusion 2 - Technical Support
    Replies: 58
    Last Post: 21st November 2009, 01:54 PM
  3. Scoring
    By toastface5 in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 11th November 2009, 08:50 PM
  4. Scoring problem
    By stillhawk in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th June 2007, 06:01 AM
  5. Scoring
    By jrk in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 30th July 2006, 10:33 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
  •