here’s what I’ve got! I fixed the card flickering stuff and deleted some code that was kinda repetitive. take a look and let me know what questions you have! I didn’t do the place on purple card → move code bc i couldn’t find where that was in your code >> but hopefully this makes sense!
I cant find it either… well bc you deleted it I had one cursor overlap card
and one cursor overlap stacksprite1 and you deleted both and just put back the card one…
But it is basically the same but whe you pick it up it sets it to kind card! Problem is setting the data bc in the sprite of kind cursor overlap sprite kind sd1 (setdownstack1) you can set the data to the one you have in your hand!
lol yeah I meant I couldn’t find it in your original code. I had a copy of both to work with.
And you should try coding the setdownstack code from my version! It should be similar to the card pickup logic – you can make the cards a new kind (like DiscardCard) and copy almost everything
Wohoo! It finally works! Thanks to vivian (@livcheerful) I could get the snapback for the setdownstacks to work! As you can see in the gif I drag the card up on a setdownstack and then move it in a spot where it cant be placed and it goes back to the setdownstack instead of the handcards!
Next Objective: The setdownstacks are as they say stacks! But on each stack you should be able to place 4 cards and only take the top card! Currently when you drag a second card on the stack you will pick up a random one… So I need to fix that (help pls)
Anyway here is the game!
I’d say use sprite data to set the “Top Card” as a sprite for each stack and set it every time you set a new card down
Yeah true but when I take that card how do I set the now top card?
oh that’s true! in that case, I would just say in the overlap of the stack event, loop through all the sprites of kind card that is on the stack (i dont remember what the name for it is), and find the sprite that has the highest z index!
I have no Idea about z indexes… Could you potentially do that for me real quick?
z index means which sprites will be on top of each other. I’m pretty sure you used them when picking up cards! I don’t have time to work on it but i believe in you