Card Inventory gui

I am working on an Uno game, everything works fine, but I would like to change how my card inventory works: 1. I want the cards to be sorted by color, 2. I want the cards spread from the middle to the sides, 3. The cards need to overlap if there are many, otherwise they will disapear out of screen (because it doesn’t fit)

I want it to work like this: https://streamable.com/ons1z2

I don’t know how to achieve this effect tho, atm I have this:


I added an UiListLayout to a frame (set it to horizontally, and changed padding to (-0.05, 0)), and add the cards to it, Anyone knows how to achieve this effect? Couldn’t find a sollution anywhere.

  1. This’d need to be hard-scripted.
    What you could do is:
  • Make a function to check where to put the card, use a color and number parameter.
  • Check where the lower number is and put between one which is lower than and higher than.
  • Then order the colors (Red, yellow, green, blue).
  1. Change the anchorpoint to something like this:
AnchorPoint = Vector2.new(.5,0) 
  1. I suggest using a (transparent) ScrollingFrame or making the distance between cards smaller every time a new card gets added.
1 Like

Thanks, I’ll try to do that, I’ll tell you when I have something