i have a list of sprites,named "Card_**",where first * are trump,and second are index number of card.i get both numbers from server,and after that i must place all needed sprites on layer.how can i do it in runtime?
half-found:
runtime.objects.Card_&my_card[0]&my_card[1].createInstance("Layer 0","100","100");
but how instead
Card_&my_card[0]&my_card[1]
make name from string "Card_" and two variables my_card[0] and my_card[1]?
Develop games in your browser. Powerful, performant & highly capable.
well,i done it
runtime.objects["Card_"+my_card[0]+my_card[1]].createInstance("Layer 0","100","100");