retro-bruno's Recent Forum Activity

  • Today and tomorrow, i have not the time, but if you can wait theese two days, i'll take a look at the capx file.

  • I answer to myself :

    Some GPU are not compatible with webgl for now.

    Chrome blacklist theese tablets, and switch to canvas2d.

    We can disable the blacklist in chrome ( chrome://flags ), but it don't works on my Acer Iconia B1-710.

  • Thanks a lot...

  • Hi,

    It could be useful to make appear an instance of object behind all the instances of an other object type.

  • Hi,

    Can you tell more about your problem ?

    What kind of TestHit is it ? CollisionHit or HitScreen ?

  • Hi,

    I think you should change the layer/z-order of the sprite in the events.

    EDIT:

    I'm not shure you can do what i said... sorry.

    May be you can create a hidden instance of your object in your layout, or place it out of the layout, and then choose it's z-order.

    And on click, you've just to show and place your object.

  • I'm no shure i understand, but you can right-click on the lava or spikes to set their z-order.

  • No idea ?

  • Hi all,

    I'm making a remake of Pacman, but when i'm under Android, webgl is disabled and replaced by canvas2d.

    Is there something to respect in my game, or something special to do under Android to get webgl active ?

    Note that under ios 8, webgl is ok.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First make constants in this order, from the bottom to the top :

    • HigherCard = 1
    • OnePair = 2
    • TwoPair = 3
    • Three of a kind = 4

    Etc...

    Create an array called, for example, "HandValue" with the players count cases, for example, we will take 4 players, so an array of 4 cases.

    Once you checked the hand of Player1, give him the constant corresponding, set it to his array case.

    Once you checked the hand of Player2, give him the constant corresponding, set it to his array case.

    Etc...

    Then compare in the HandValue array who has the best value.

    In case of equality, as you have an other array (of 5x2) with each hand sorted from the greater card to the lower, do a loop.

    In this loops, compare the first cards of the "winners".

    If one of them has the greater 1st card, he is THE winner.

    Else, if equality, compare the second cards of the "new winners"... If someone has a lower card, he is eliminated.

    If one of them has the greater 2nd card, he is THE winner.

    Etc...

    In case of 5 equals card for two or more players, you have to deal with total equalities.

  • If you have multiple players, don't forget to also give a constant value to each possibility of winner hand.

    Example :

    • HigherCard = 1
    • OnePair = 2
    • TwoPair = 3

    etc...

    Then, compare first who has the most powerful hand. (TwoPair > OnePair because 3 > 2 ...)

    In case of equality, compare the cards in the array and in the order (one array per player is needed !)

retro-bruno's avatar

retro-bruno

Member since 31 Mar, 2015

None one is following retro-bruno yet!

Connect with retro-bruno

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies