random graphic called

For questions about using Classic.

Post » Sun Apr 11, 2010 11:38 am

Ive had a bit of a look around thinking that there may be info on creating a random graphic when reuired, but I cant seem to find anything.

Basically, I am hoping to create a digital card deck, made up of a "deck" of card graphics.
I am hoping to create something where once triggered, a card is revealed at random.
Its not the sort of game I usually create, so if anyone can walk me through the process, it would be greatly appreciated.

Ive got all the graphics ready...

Thanks in advance
B
2
G
3
Posts: 45
Reputation: 940

Post » Sun Apr 11, 2010 2:08 pm

I did something similar by adding all graphics to one sprite as animation frames and upon object creation I set the animation frame to random one.

If you need to track witch were already drawn then a loop and an array to store drawn cards would be required.
B
2
G
2
Posts: 23
Reputation: 696

Post » Sun Apr 11, 2010 2:14 pm

I would think the Card Game Object would be helpful.
http://sourceforge.net/apps/mediawiki/c ... ame_Object

or better the INI Object
http://sourceforge.net/apps/mediawiki/c ... INI_Object

I am still struggling with the INI Object myself or would make you an example
B
28
S
8
G
8
Posts: 530
Reputation: 7,154


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests