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 recognised by the arrowKey message script (I placed this at the beginning instead of at the end). I stared at the heirarchy list which I have in front of me ALWAYs - the exhaustive one with substacks and 'start using stack 2 etc" and have read quite a lot about it. But all this does not seem to help me understand.....something obviously.
Second. I wrote this script sometime ago (this one you see below) , it is on a card with two buttons and works fine. I know it is a different script, so I am imagining that it is the syntax of my present script which is causing problems. That is a guess, since I have tried to understand what is wrong, and can see nothing concrete. Obviously there is a mountain of mistakes, I can only do so much to understand and get it right, we make mistakes, we are told what is wrong, we learn from that. Thumbling around for clues and answers all evening does not help me to learn because I can only study and read, practise and get it wrong, then I need to be shown what is wrong. Any failures to get it right after a lot of attempts is not a sign of my lack of diligence and effort, but a sign of lack of good solid teaching material. I have been through terry's stack, it is excellent, and I am going through it again even as I write this, I have just downloaded his update and look forward to cementing and more drilling. I have gone through Jacques hierarchal stack, it is very good. But I can not fix this problem, I only know what I have read, but the learning experience needs 10 times more than the written material, it needs teaching and demonstrations and examples of pitfalls and examples about what NOT to do, and demonstrations about mistakes beginners might make, it needs visuals and diagrams and creative explanations (assuming that LC wants to go world wide as Richard gaskin mentioned in another post). Teaching material that just teaches the rules of the grammar does not help one to speak the language (I should know I have taught one language in college and instructed privately in another) I understand teaching, so LC tutorials teach you grammar, fine, and that is all I have, I have done the grammar, I do not understand how to speak this correctly, but understanding the grammar will help me to really appreciate the answer, and put me out of my sheer misery right now.
Should add this that is just a snippet of course you can guess the rest I know -
Code: Select all
on arrowKey Y
if Y is up then
set top of the button "box" to top of the button "box" -10
-- a sort of bouncy effect from the top, unless set to
-- a value of 0 instead of the 20
if top of button "box" < 0 then
set the top of the button "box" to 20
Kindest regards
chris
