Simple Myst-Like Application

Gordon Tillman got at mindspring.com
Thu Aug 24 15:27:35 EDT 2006


Howdy Graeme!

Just got back to the office and saw your email.  Looks like some  
other folks have kindly chimed in with clarification and details.   
(This is a great mailing list!)

--gordy

On Aug 24, 2006, at 09:34, Graeme Harlick wrote:

> Gordon,
>
> So what I do is:
>
> In the Stack script I put:
>
> global gUserpoints
>
> on openStack
>   put 0 into gUserpoints
> end openStack
>
> Then on the top of every Card script:
>
> global gUserpoints
>
> And if it is a point awarding card:
>
> global gUserpoints
> add 10 to gUserpoints
>
> And if its a point awarding button
>
> on mouseDown
> add 10 to gUserpoints
> end mouseDown
>
> Then I have a field at the bottom of the screen where the score  
> adds up, so I set the contents of that field to gUserpoints? Would  
> you know how to do this?  Also in the last example, how could I  
> make it work only ONE time, so that the user won't click on it  
> again and get 20,30,40 pts....and so on.





More information about the use-livecode mailing list