probability for cards

I want to make a joker-game, first thing I need is cards, , like in the game in real life , you do not know what cards will you get , is it possible in unity to make different ways to get cards,

and the second : first when the player starts the game , the players are : Peter, Nick, Tom but when he restarts the game the players maybe different, like Audrey ,Mike,...

I think to make variables, those changes all time when game restarts

or when the player press start button the other player objects change with the next(different) players , and then starts the game

Yes it's doable. Any thing you can script in JS or C# within the.NET Mono framework is basically doable. If you mean can Unity do it out of the box, then no.

Just put the names into an Array and call a random name from the array using Random.Range

For the cards, you want a shuffled deck to deal from right? Then use an array (like spinaljack mentioned for the names). Use a randomizer to place the cards within the array. In the game, call the cards out of the array in order (card[0], card[1], etc).

1 Answer

1

Poker Pack on Unity Asset Store

The package contains models, textures and basic scripts to give you a head start creating any type of card game.

PlayingCards and PokerChips can change colour/suit/face/number etc by using the inspector or setting using the Change() functions in code.

Poker Pack Asset Store Link: http://u3d.as/content/draw-it/poker-pack/2kFalt textPoker Pack Asset Store Link: http://u3d.as/content/draw-it/poker-pack/2kF

Poker Pack Asset Store Link: http://u3d.as/content/draw-it/poker-pack/2kF