Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jbliss243 |
I’m working on a card game and I want the cards in the players hand to be displayed horizontally. However the only way I know how to do this is with the “in range” function which I think limits me to having the cards lined up vertically. Here is my code any advice would be helpful:
for i in range(5):
var card = card_scene.instance()
card.position = Vector2(screen_size.x-140, 100 + i * 100)
add_child(card)
player_cards.append(card)