I’m making a card game so I need to select 2 random cards, one for each player, from a group of objects, or the deck, and then compare each player’s drawn card to see who wins. But I don’t know how to take the randomly selected card (I used random) and put it into a variable which then I can compare. I might be taking the wrong approach though.
Thanks, will look into that. After randomly selecting from the array though, is there a way to store it, and then compare them? Because aren’t I just doing the same thing but with an array?
Thanks, a bit confusing, but could help. Is there a tutorial on creating arrays in gdevelop?
edit: Are there any placeholder tutorials at all? Because now I need a way to display each player’s drawn card that was randomly selected and was put into a variable (or at least I think it was) in a specific spot.
Thanks, I’ve seen that though and it doesn’t quite make sense. It’s not quite what I need and doesn’t easily show how it works as I’ve looked at it for another problem I had.