Search found 354 matches

by chris25
Sat Dec 07, 2013 11:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a password for a stack?
Replies: 6
Views: 3484

Re: Creating a password for a stack?

I have no knowledge of this but my immediate guess would be to use the ask command and answer dialogue box, set a variable to true or false and the variable contains the top secret password? This is just an off the cuff thought, have not looked into it myself though.
regards
chris
by chris25
Sat Dec 07, 2013 11:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Arrowkey
Replies: 7
Views: 3716

Re: Arrowkey

Firstly. I have been through every inch of this code with breakpoints. (i found a tiny mistake but this had no influence at all on correcting). The variables were filled and recognised. I saw no problems with values at all. The debug also showed me that the animationPlease custom command was recogni...
by chris25
Sat Dec 07, 2013 6:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Arrowkey
Replies: 7
Views: 3716

Re: Arrowkey

NOooo I have to trap the arrowkey message - know what trapping is but can not find tuition about this when searching. trapping is where a message gets fished out of the script and eaten by a handler, question logically is then: what handler? How have no idea yet. Edit: added pass arrowkey. According...
by chris25
Sat Dec 07, 2013 5:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Arrowkey
Replies: 7
Views: 3716

Re: Arrowkey

This fails now? CARD SCRIPT --on mousemove put the mouseloc into msg --end mousemove local varA local posX local posY on arrowKey sRudder if sRudder is "left" then put (varA -1) into varA end if if sRudder is "right" then put (varA +1) into varA end if send animationPlease to me in 1 end arrowKey on...
by chris25
Sat Dec 07, 2013 1:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Arrowkey
Replies: 7
Views: 3716

Arrowkey

on mouseUp arrowKey pKey put the loc of btn "mine1" into startLoc repeat until intersect (btn "mine1" , btn "start") = true get the loc of btn "mine1" set the loc of btn "mine1" to (item 1 of it) & "," & (item 2 of it + 1) wait 1.5 end repeat set the loc of btn "mine1" to startLoc end mouseUp on ar...
by chris25
Sat Dec 07, 2013 12:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Needs a 'wait' to work, Why?
Replies: 20
Views: 9087

Re: Needs a 'wait' to work, Why?

Hallo Sparkout (keep wanting to type sparky everytime :D ), Firstly my sub game? I still have has the same problems, can't get it to work, too inexperienced, not enough knowledge about working with loops and synchronisation and that true false variable idea that you kept suggestingI can not script i...
by chris25
Sat Dec 07, 2013 12:43 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Needs a 'wait' to work, Why?
Replies: 20
Views: 9087

Re: Needs a 'wait' to work, Why?

Craig, obviously in the button, that is the first object in the hiearchy, but on mousedown put mouseloc into msg does not work amongst other things I have tried. I just want to type the command in the message box, I had it there before,j ust can not remember the syntax. To be honest your question co...
by chris25
Fri Dec 06, 2013 11:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Needs a 'wait' to work, Why?
Replies: 20
Views: 9087

Re: Needs a 'wait' to work, Why?

Thanks sparkout. Just one more question, and I did know tis but have lost the notes. I used to be able to type something into the message box so that wherever I moved the mouse within a stack the message box provided me with the location co-ordinates in real time. Darn it I have tried everything but...
by chris25
Fri Dec 06, 2013 10:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Needs a 'wait' to work, Why?
Replies: 20
Views: 9087

Needs a 'wait' to work, Why?

I was messing around with a simple button and a start button, I wrote this and spent half an hour wondering why the hell it would not work UNTIL I put the "wait 0.5" into this script. I have absolutely no idea what I was doing and no idea why suddenly this script moves the button as planned? What ex...
by chris25
Fri Dec 06, 2013 3:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send in the dictionary
Replies: 4
Views: 2713

Re: Send in the dictionary

Yes it seems a little clearer now, actually when you said it was a kind of cool on off switch actually clinched it, just having to adjust my logic here a bit. thanks Klaus, it makes sense now. By the way, I thought people might be interested in this: http://en.wikipedia.org/wiki/George_Boole I walke...
by chris25
Fri Dec 06, 2013 1:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send in the dictionary
Replies: 4
Views: 2713

Re: Send in the dictionary

Hallo Mark, just to make sure I understand this, Oh that second script - thankyou, brilliant. The first script. My comments after ==== on somethingComplicated   send "foo" to me in 0 millisecs // start blinking now ==== to 'me' in this case as long as the indicator's script is on the same stack as t...
by chris25
Fri Dec 06, 2013 10:46 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Send in the dictionary
Replies: 4
Views: 2713

Send in the dictionary

This comment in the dictionary has me considering the following: When a send command is sent and completed in some action, it is done. I presume by the need to cancel that what is happening is that it is done, but still in the loop taking up valuable processor time, and therefore needs to be actuall...
by chris25
Fri Dec 06, 2013 12:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Animation observation Long introduction but quick question
Replies: 2
Views: 1616

Re: Animation observation Long introduction but quick questi

Hallo there Simon, yes, it would call the dropmines in the previous way that I was doing it. So this kind of scripting then needs a background loop to be running in order for certain types of scripts to work then? No problem I am not going down that road, it fouls up the send messages that I have an...
by chris25
Thu Dec 05, 2013 11:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Animation observation Long introduction but quick question
Replies: 2
Views: 1616

Animation observation Long introduction but quick question

Introduction: Due to overly complex coding and lack of experience I threw away all the code that is usually scripted in the Stack that involved frame rate and dispatching updates and updating screen (I think you know what I mean here without including the code) and all the code that I had written as...
by chris25
Thu Dec 05, 2013 10:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Pass command
Replies: 12
Views: 6030

Re: Pass command

Hi Craig, kind of you to ask that. Honestly, I think I was on the verge twice of giving in, but those feelings were half-hearted - more like a bad mood moment. Yes I definitely have gotten used to the environment and the logistics and probably quite a few foundations laid. But building the bricks in...

Go to advanced search