Search found 4 matches
- Thu Feb 04, 2016 4:39 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Accessing variables across buttons
- Replies: 6
- Views: 3663
Re: Accessing variables across buttons
This may be slightly overkill, but here is my all of my scripts in their entirety. Here is one button: on mouseUp set_up create_card_arrays card_array shuffle card_array, selected_card_1, selected_card_2, selected_card_3, all_selected_cards apply_to_p1 selected_card_1, selected_card_2, selected_card...
- Thu Feb 04, 2016 4:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Accessing variables across buttons
- Replies: 6
- Views: 3663
Re: Accessing variables across buttons
Thanks for getting back to me.
I have declared the global variables in both buttons (the code for selecting cards is on one button, and the code for displaying the selected card is in another). Any other reason you can think of for a blank message box?
I have declared the global variables in both buttons (the code for selecting cards is on one button, and the code for displaying the selected card is in another). Any other reason you can think of for a blank message box?
- Thu Feb 04, 2016 4:01 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Accessing variables across buttons
- Replies: 6
- Views: 3663
Accessing variables across buttons
I'm currently trying to create a card game in LiveCode. I have one button that randomly selects 3 cards (value and suit separately) from a 2D array. These values are then placed into another 2D array for player 1. When I try to display any variables from this button using a second one, the message b...
- Tue Oct 27, 2015 4:38 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Display a 2d array
- Replies: 2
- Views: 1900
Display a 2d array
I have been trying to display a 2d array in a table field. I've tried to combine my array in order to do this but I haven't found out how.