Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I want to make a game where you click a button to draw one of 30 cards from a deck and it shows on the screen.
Then a simple back button to the main menu to do it again.
No platform, no scoring, no points.
Is it possible to do in this program?
Yes it is possible.
Create a sprite or an array which hold your 30 cards and then use the random() function to pick a random card.
And then display it.
Yes, fill an array with your cards (+ their properties if you want), could add shuffling or just let the system pick a card randomly out of the array if sequence of cards in the stack doesn't matter.
scirra.com/forum/randomized-an-array-for-a-deck-of-cards_topic45833.html
maybe this thread could help you
as i do it:
make an object with 30 animations. name them like "card1", "card2", ...
then i create an variable which creates a random number to choose a random card. => round(random(1,30))
Develop games in your browser. Powerful, performant & highly capable.
Thats fantastic! I hope to have something made by next week. Wish me luck! Anyone hang out on skype for random messages back and forth?