Help: script only works when in debug mode

Thomas McGrath III 3mcgrath at adelphia.net
Sun Apr 9 09:49:13 EDT 2006


Ian,


I was just about to respond when I saw you answered your own post.  
The without waiting is the culprit. The computer doesn't wait to move  
one while the other is moving to it's new location and as such is  
getting the wrong coordinates to figure out what the relative is. I'm  
surprised that it didn't also get the naming wrong as well.

Do you even need the in 1 tick part at all?

Happy scripting,

Tom

On Apr 9, 2006, at 9:07 AM, Ian McKnight wrote:

> Hi
>
> Providing an answer to my own post here.
>
> It seems to be a timing problem. When I replace
>
> move the selectedobject relative 18,-32 without waiting
>
> with
>
> move the selectedobject relative 18,-32 in 1 tick
>
> the code executes perfectly.
>
> But setting the lockmoves property to true before the loop  
> initiates and to false after has no effect.
>
>
>
> Thanks
>
> Ian McKnight
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:  
> 08/04/2006
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Thomas J McGrath III
3mcgrath at adelphia.net

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html










More information about the use-livecode mailing list