Help with animation & randomizers

so I have my card simulator game, and Im trying to figure out how to make it so when you click one of the buttons (image shown below) it teleports your camera to another area which opens up the pack if you have enough packcoins, and has a little opening animation showing which cards you got. I am also trying to figure out randomizers on the cards so
each card has a different chance, and whenever you get a pack, you will also have a chance to get a duplicate card from that set.

image

Thanks!
~Average

Well use the camera point for the teleporting the screen to opening the pack scene.

1 Like

Now, have the art for the card activate on a random channel. Here’s the code for the randomizer:
image

3 Likes

Just have the barrier art activate on channel’s random1, random2, or random3. You could always make more as well.

wait wait wait.
Do i attach this block code on the buttons?

Yes, have the button activate a trigger. The block code is inside the trigger.

so for however many buttons i have, i change the random integer from 1 to __?

You should only need one button. Unless it’s a different themed pack.

The random generator is for the different things you can get from the pack.

it is because each of these buttons opens a different pack.
image
and also i forgot to mention that i want to pull mutiple cards out of one pack
(perferably 3 cards from each pack that could give duplicates)

Yes, each pack button on there would activate the same trigger. The trigger would can also put the different things you get from the pack as a random integer.

so say for example i have 5 different cards in the forest fun pack.
i would put the random integer from 1 to 5?

Yes, also if the cards are different rarity then you can also put legendary cards as a random integer, but a rarer chance to choose.

well each card has a different rarity from rare → legendary (and we have a couple of the same rarity)

Then the common’s would be 1/2, uncommon could be 1/3, rare 1/4, epic 1/5, legendary 1/10, mythic 1/50.

ok ok ok.
(i think i get it now?)
i finished with this block code
image
(so just to get this straight, we haven’t started working on this yet,have we?

You just would need the camera point for the common packs to activate on a random integer. You can set the common packs channels as a higher chance of choosing like a random integer between 1/2.

ian jumps in

Well, if we have diffrent rarities, it would be something like
Common would have, chance >/= 10 (can get from 1 through 10)
Uncommon would have, chance >/= 15 (can get from 11 through 15)
Rare would have, chance >/= 18 (can get from 16 through 18)
And so on (if you want harder chances up the first number and keep going until you can make harder chances)
If you need a picture, i can suply a picture

1 Like

well for some reason the camera point doesnt have blocks.
image

alright. that might help a little.