# Card Game: Sprites behaving in satisfying, unintentional ways

**URL:** https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445
**Category:** Help
**Created:** [June 6, 2023, 8:57pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445 "2023-06-06T20:57:01Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [June 6, 2023, 8:57pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/1 "2023-06-06T20:57:01Z")

</div>

For some reason the sprites and positioners move towards the middle of the screen? Looks like a cool hand shuffling sequence though.

> **[Card Game v0.3](https://arcade.makecode.com/S60305-81737-27755-79701)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![danger\_kitty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danger_kitty/32/32006_2.png) [@danger\_kitty](https://forum.makecode.com/u/danger_kitty)
#### Post date: [June 8, 2023, 11:22pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/2 "2023-06-08T23:22:03Z")

</div>

I love this so much the bouncing cards are cool I would like to make a makecode cardgame like slay the spire

---

<div class="post-metadata">

### Author: ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)
#### Post date: [June 9, 2023, 5:28pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/3 "2023-06-09T17:28:11Z")

</div>

What the (_insert swear word here_)! HOWWWWWWWW ITS TOO GOOD FOR MY EYES

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [June 9, 2023, 5:51pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/4 "2023-06-09T17:51:05Z")

</div>

Work in progress!

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [June 9, 2023, 7:46pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/5 "2023-06-09T19:46:43Z")

</div>

> **[Card Game v0.3](https://arcade.makecode.com/99970-83008-45411-06548)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

How do I show selection of a card? Right now I’m just changing the z value but when I try to change the scale it lags like crazy as its under an on sprite of kind update block.

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [June 9, 2023, 7:50pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/6 "2023-06-09T19:50:13Z")

</div>

outline it in white and take away the rotation (set it to 90 or 0 or whatever the default angle is)

---

<div class="post-metadata">

### Author: ![Unique](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unique/32/32724_2.png) [@Unique](https://forum.makecode.com/u/Unique)
#### Post date: [June 12, 2023, 4:20pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/7 "2023-06-12T16:20:52Z")

</div>

Perhaps raise the card a bit. I would say for aesthetics, move the card in the direction it’s facing (since each card other than the centered one, is angled a bit.) But that paired with how it works at the moment would be cool.

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [June 21, 2023, 8:41pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/8 "2023-06-21T20:41:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7811ae33c25c4a0c1af52c0cbae669d40e553031.png)

This took a unreasonable length of time but I am still working on the game!

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [June 22, 2023, 4:55pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/9 "2023-06-22T16:55:41Z")

</div>

> **[Card Game v0.5](https://arcade.makecode.com/19806-00285-67656-74575)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Selection is here!

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [July 28, 2023, 4:49pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/10 "2023-07-28T16:49:00Z")

</div>

> **[Card Game v0-7 - Copy](https://arcade.makecode.com/15199-57521-20676-94399)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

New Update!

- Added randomly generated maps (press menu to open; up and down to control)
- Mock up of how the battles will look
- Nicer looking rotation of cards (sprite scaling extension is better than sprite transformations)
- Need help with the cards being added and removed from hand

There are 3 arrays that handle the cards at any given time

- CardDrawPile has most of the cards
- CardInfo is basically your current hand
- DiscardPile is where cards go after being played and gets shuffled into the CardDrawPile when it’s empty.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9cf44b557472a1aee9b7433aaf16968727ad419a.png)

---

<div class="post-metadata">

### Author: ![InvalidProject](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/invalidproject/32/32554_2.png) [@InvalidProject](https://forum.makecode.com/u/InvalidProject)
#### Post date: [July 31, 2023, 6:01pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/11 "2023-07-31T18:01:14Z")

</div>

If you have ever seen Inscryption?

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [July 31, 2023, 6:20pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/12 "2023-07-31T18:20:29Z")

</div>

Yeah I watched a few videos on it very cool game, love the atmosphere.

---

<div class="post-metadata">

### Author: ![Unique](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unique/32/32724_2.png) [@Unique](https://forum.makecode.com/u/Unique)
#### Post date: [August 14, 2023, 4:12pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/13 "2023-08-14T16:12:59Z")

</div>

@Luke I feel like a detective game would be awesome with that artstyle!

---

<div class="post-metadata">

### Author: ![TheGreenArtist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegreenartist/32/11096_2.png) [@TheGreenArtist](https://forum.makecode.com/u/TheGreenArtist)
#### Post date: [September 25, 2023, 9:52pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/14 "2023-09-25T21:52:12Z")

</div>

Can i edit this into an actual game and put into Makecode Infinity?

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [September 25, 2023, 10:24pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/15 "2023-09-25T22:24:49Z")

</div>

I’ll be very impressed if you’re able to, but go ahead!

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [November 20, 2023, 11:21pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/16 "2023-11-20T23:21:59Z")

</div>

![download (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/eb296d91b918b997729beb96ae60795dba825948.gif)  
Sneak peek

---

<div class="post-metadata">

### Author: ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)
#### Post date: [November 21, 2023, 6:12pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/17 "2023-11-21T18:12:15Z")

</div>

man this looks amazing!!!

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [November 22, 2023, 12:36am UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/18 "2023-11-22T00:36:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/78307b126d8c20a4e1a26b5bac45c5e6cc67e07c.jpeg)

Impressive, very nice

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [November 22, 2023, 6:40pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/19 "2023-11-22T18:40:33Z")

</div>

Thanks for your help!

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [November 22, 2023, 8:06pm UTC](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445/20 "2023-11-22T20:06:48Z")

</div>

What do you mean-?

[Next page](https://forum.makecode.com/t/card-game-sprites-behaving-in-satisfying-unintentional-ways/20445.md?page=2)
