Hi
Looking for some help in making a simple card app, i want to be able to flip card to reveal then flip back. Im also looking to make it drag and drop around the screen. Would anyone have any advice.
Regards
Alec
Printable View
Hi
Looking for some help in making a simple card app, i want to be able to flip card to reveal then flip back. Im also looking to make it drag and drop around the screen. Would anyone have any advice.
Regards
Alec
This can be done a ton of different ways
For a standard deck of cards
I'd make one active
With alterable values
CardSuit
CardValue
Flag
IsFlipped
I'd store the card back in the stopped animation
I'd create 4 custom animations one for each suit. Hearts(0), Diamonds(1), Clubs(2), Spades(3)
With the card value as each frame
A,2,3,4,5,6,7,8,9,10,J,Q,K
And use the built in drag and drop movement
Run loop 4 times 'SetCardSuit'
Run loop 13 times 'SetCardValue'
Create Card
Set CardSuit to SetCardSuit.loopindex
Set CardValue to SetCardValue.loopindex
Card is clicked
Set flag Isflipped ON
IsFlipped = ON
set animation to custom animation 1 + CardSuit
Set Frame to CardValue
IsFlipped = OFF
set animation stopped
Not at PC so can't do an example mfa
Wow thank you :)
Hi
Having a little issue, would you mind having a look sorry.
Regards
Alec