lilOptionz's Recent Forum Activity

  • thanks guys I got it working. a bit clunky but it does the trick.

    I will post what I have done here so that anybody who searches for how to do this in the future can see my solution.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • thanks, this seems to work, under the assumption that the player characters all have different scores.

    now the problem is that if multiple players tie in terms of their score, the loop index doesn't know that. lets say 3 players have the same score and are tied for 1st, those 3 players are not all going to be listed as first in the loop index.

    They are still randomly placed in the first second and third spot of the loop index. So once the loop index is ran, those 3 players will not all be listed as being in 1st place but rather randomly placed in 1st, 2nd and 3rd

    I tried implementing a fix using sub events but that did not seem to change anything

    here is a picture of what I have set up currently

  • I'm working on a board game similar to Mario Party.

    throughout the game all 4 player characters should be ranked (1st, 2nd, 3rd, 4th place) based on their score (how I determine their score isn't relevant to this topic)

    For the life of me I can't figure out how to do this, I have tried a bunch of things and searched on google for a solution but found nothing.

    Right now I have all 4 player objects in a family and they get sorted by their score from highest to lowest and then a sub event picks the 1st, 2nd, 3rd, and 4th object in the family and sets their "placement" variable to 1, 2, 3, and 4

    and then a corresponding rank sprite will update to 1st 2nd 3rd or 4th depending on the player's placement variable.

    I think the problem here is that selecting the "0th,1st 2nd etc" instance of a family doesn't select any of the objects in that family but rather the family itself. and since there is only 1 instance of the family, it always sets all the players to 1st place

    that being said what would be the best way to go about setting the placement of all 4 of the players based on their score? would I even need a family to do this?

lilOptionz's avatar

lilOptionz

Member since 12 Oct, 2022

None one is following lilOptionz yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies