Results 1 to 5 of 5

Thread: Change Order of Deck

  1. #1

    Change Order of Deck

    Is there no way besides shuffeling until you get the result you want to change the order of the deck? I have 3 cards and would like to put certain cards on top depending on the button. I am using a state workaround but want to avoid the overhead of loading the states in each time.

  2. #2
    Your deck only has 3 cards? Or you have 3 buttons to pull 3 specific cards to the top of a bigger deck?

  3. #3
    Join Date
    May 2016
    Posts
    1,072
    You can use takeObject to pull the 3 cards and place them immediately above the deck so they end up on top. It is the only way I can think to do it.

  4. #4
    Quote Originally Posted by MrStump View Post
    You can use takeObject to pull the 3 cards and place them immediately above the deck so they end up on top. It is the only way I can think to do it.
    Yeah I thought of this but would rather avoid any frame delay. Changing states also results in a frame delay before I may act on the deck and there is no callback function and you can not yield in a button function. They should add callback functions for setting states just like taking objects.

  5. #5
    Don't get me started on how many functions should have a callback ability but don't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •