How to deal cards for solitaire type game
thaas1124
Member Posts: 9
I'm new to GS, and have researched various tutorials and manuals, but can't figure out how to do this. I'm creating a solitaire type game where I click a button to turn over a standard 52 deck card. Then I click one of 5 buttons to move this card to one of 5 columns. I created a table that would store the x,y coordinates where each card should currently be. So the card actor is spawned over the deck by having all initial x,y's as the coordinates of the deck. Then when I click a column, I change the x,y table values for that card that was selected. Each card has a Move To referencing the table values. However, when I click the columns, the card doesn't move. Am I missing something? Do I need to use the constrain attribute instead? Help is appreciated! I'm having difficulties figuring out which actions are done just once, which are constantly looked at, and the best way to accomplish these actions.
Comments
I thought just by making the actor have a move to behavior, and referencing a table would work, then any time you change the value of the x,y in the table for that card, it should move the card...but it doesn't seem to work.
Any suggestions? Thanks! Going crazy trying to figure this out.