morspyz's Forum Posts

  • 8 posts
  • hi,first of all its a card game and we are 4 people playing on the table like the picture

    which is the best way to do it with construct if i want that on this multiplayer game when u are playing u cant see other players cards just the back face and all players position is like all were sitting in the same place of player4 position in terms of layout vision?

    The solution is to make 4 layouts each one for each player or its posible with one layout?all players should see the drop zones,discards and mount

    if solution is 4 layouts is it possible to deal 15 cards to each player on different layout?

  • any tips?

  • rexrainbow

    thnx a lot

    just 2 points in your capx when setting local variable suite_B you are setting point_B instead and move to top deck make it more visuable for your sample

    just for people noob like me downloading from ur dropbox

    great work on your plugins behaviors thnx a lot

  • in a card game with 104 cards + 4 jokers

    how can i set the variable cardvalue + cardsuite to joker to be all other cards value and suite?

    i know that setting facevalue is like int(CardDeck.At(DeckCardNumber)%13) +1 and cardsuite floor(CardDeck.At(DeckCardNumber)/13) using an array

    but joker can be all suite or value at once

    thank you

  • morspyz

    You might

    1. remove all instances in rex_layouter object. ( User need to pick them all by Condition:Pick all instances, then Action:Remove instances)

    2. rearrange instances by rex_ginstgroup object.

    3. add instances sorted in steps by Action:Add instances in rex_layouter object.

    I might need to add an action to remove all instances more directly.

    hi and thanks

    step1 correct?https://www.dropbox.com/s/nuaxyq91bprpl4c/order.jpg

    step2 i only see how to sort with instgroup by uid ,how i can get to sort them by variable cardsuite on my card game?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi,is it possible to rearrange instances arranged with rex_layouter_linear by card suite ?

  • Check if 3 cards are selected

    Check all face values are the same

    Add all selected cards values to an array

    Sort the array (it will put cards in ascending order)

    Check that card in index 1 is greater than card in index 0 by 1 and lower than card in index 2 by 1

    If all that is true, position the cards close to one another in order and position pin them together

    hi and thnx for reply

    when u say Check all face values are the same u mean check all card suite is the same?

    i didnt explain correctly first post, i want to make straights of same card suite ex: 1clover-2clover-3clover...kingclover and the first time you set cards on x position they have to be at least 3 ex: 4clover-5clover-6clover and then you and player playing with you can set more cards of that suite.

    how can i ckeck if all clicked and set as clicked variable are from same suite?compare variable deck- cardsuite = deck.cardsuite?

    and how i can check an index value at position x when i pick more than 3?

  • hi,im new to programming and learning about construct

    i'm practising with a card game like buracco style

    i want to click cards already on player hand,the first group should be 3 cards and ordered by value and suite and move them to another position if that happens

    i have already set variables on each instance card with facevalue and cardsuite and set the value and suite of each card clicked on a array

    some tips on how to compare cards to be ordered before you can move them ?

    i'm searching forums every day while practising what i found but there are few card games posts..

    sorry for my english im spanish

    if someone is interested in making the game with me tell me

    im using rexrainbow plugins and behaviors on the capx thank you in advance

  • 8 posts