lol. you should upload the demo, if even under another account. it turns out that card games are more difficult than i thought in scratch, though. v1.3 should help with this, however, so you may want to wait :)
I have created a deal mechanism (just like regular solitaire) and am working on moving stacks and also detection of correct placement. For the draw pile, the first set of clicks through choose teh card randomly, and assigns a place in the deck to the card, so even the order is kept.
ok, I have started work on it. Since there is a draw pile which I want to be able to reset itself, I am using secondary suit variables to reset the card values in the deck.
Making all of those variables might take a while, but I really think that this program makes it easy :P although I might have to use 52 actual sprites.....or maybe just 8 or 9, and have them multi-task.
Yeah. This project doesn't need 52 sprites, since the suit and numbers are separately stamped. Actually, all of that should be transparent if you follow the directions in the HowTo section. If I were doing solitare, though, where you have to move a lot of things around, it may actually be easier to have 52 sprites (though I would make the cards as small as possible to reduce size).
you definitely should! and of course, you don't have to ask permission. i'm actually surprised that nobody (including myself) did anything with this project, since it's fairly compact and easy to use.
Download the 5 sprites and 16 scripts of "DeckOfCards" and open it in Scratch
Project Notes
Deck of Cards
This is simply a sprite that is a deck of cards that can be dealt however you want face up or face down, and which can be used as the basis for more complicated projects.
See the "How To" section to learn how to use (it's pretty simple).
-----
For those who care, the state of the cards (whether in the deck) is stored in four long decimals (one for each suit) where the thirteen digits in each array ("1" or "9") can be read or written individually.
The cards are produced as pen stamps (so you don't need 52 sprites), thus you have to keep track of where things are using variables.
Comments
You need to be logged in to post comments
Add a Comment
I gave up, since after completing two cards, with 8 scripts per, it lags horribly. I might just upload the demo. What do you think?
lol. you should upload the demo, if even under another account. it turns out that card games are more difficult than i thought in scratch, though. v1.3 should help with this, however, so you may want to wait :)
(view all replies)ok, 8 scripts per card so far. Zero glitches. Think it will work on the site? I am almost done..
I have created a deal mechanism (just like regular solitaire) and am working on moving stacks and also detection of correct placement. For the draw pile, the first set of clicks through choose teh card randomly, and assigns a place in the deck to the card, so even the order is kept.
ok, I have started work on it. Since there is a draw pile which I want to be able to reset itself, I am using secondary suit variables to reset the card values in the deck.
Making all of those variables might take a while, but I really think that this program makes it easy :P although I might have to use 52 actual sprites.....or maybe just 8 or 9, and have them multi-task.
Yeah. This project doesn't need 52 sprites, since the suit and numbers are separately stamped. Actually, all of that should be transparent if you follow the directions in the HowTo section. If I were doing solitare, though, where you have to move a lot of things around, it may actually be easier to have 52 sprites (though I would make the cards as small as possible to reduce size).
(view all replies)If you do not mind, I might make solitaire with this!
you definitely should! and of course, you don't have to ask permission. i'm actually surprised that nobody (including myself) did anything with this project, since it's fairly compact and easy to use.
Yes. That would be great. That's the reason I put it up. I've been too lazy to finish any card game based on it...Good luck.
Ooooooooooooooh!!!! Wow! Can I use these?