Search found 7 matches
- Tue Dec 02, 2014 5:24 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Re: Activating procedures with multiple buttons
Parameter passing scares me so I'm staying away from that right now :lol: Don't be scared, this is really simple stuff! Check this easy peasy example :D Here you define a number as a parameter for the routine "do_the_beep" on mouseup put 3 into tNumberOfBeeps do_the_beep tNumberOfBeeps end mouseup ...
- Tue Dec 02, 2014 5:20 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Re: Activating procedures with multiple buttons
Hi, Magice,
I only used the if statement because it's a function I'm more used to (the tasks I've done for LiveCode in the past involved if statements). I'll give those scripts a go with my program once I'm at school again though.
Thanks
- LMW
I only used the if statement because it's a function I'm more used to (the tasks I've done for LiveCode in the past involved if statements). I'll give those scripts a go with my program once I'm at school again though.
Thanks

- LMW
- Tue Dec 02, 2014 5:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Re: Activating procedures with multiple buttons
Hi. If your variables are all used within a single script, I would use script local variables instead of globals. Do you know about these? Yes, but I'm a bit confused on their scope. Do they work within just procedures (e.g. on mouseUp... end mouseUp), or entire object/card scripts? My teacher does...
- Tue Dec 02, 2014 4:54 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Re: Activating procedures with multiple buttons
Hi, Klaus, I'm not at school right now (which is were my program is on one of the computers), but I'll keep that script in mind, thanks. In fact, I'll definitely focus on making my code more efficient in general, once I get everything working basically at least. I have defined both check_answer1 and...
- Tue Dec 02, 2014 4:22 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Re: Activating procedures with multiple buttons
When I first posted, I had nothing set to activate on the mouseUp procedure of the card (at least, nothing that works). Now that I know how to store the name of what I click, I've set mouseUp on the card to this: on mouseUp put the short name of the target into check_answer1 if check_answer1 = "Answ...
- Tue Dec 02, 2014 3:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Re: Activating procedures with multiple buttons
Hi, Craig,
Thank you very much for the reply. Your post helped me a lot, I can happily say that the buttons now function correctly thanks to that script you showed me, and the outcome of the procedures work perfectly!
Cheers a bunch
- LMW
Thank you very much for the reply. Your post helped me a lot, I can happily say that the buttons now function correctly thanks to that script you showed me, and the outcome of the procedures work perfectly!
Cheers a bunch

- LMW
- Mon Dec 01, 2014 10:18 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Activating procedures with multiple buttons
- Replies: 15
- Views: 9420
Activating procedures with multiple buttons
Hello, LiveCode Forums, I'm working on a project for my Computing course, and I've tasked myself to make a simple "Who Wants To Be A Millionaire" type of game. Each card will have four answers to choose like the show. What I'm having trouble finding out is how to trigger procedures when either of th...