Animations stops where moving card/window

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bbox
Posts: 3
Joined: Fri Mar 12, 2010 2:25 pm

Animations stops where moving card/window

Post by bbox » Fri Mar 12, 2010 2:34 pm

Hi,

I have the problem on subect, when an animation is running and I move the window, it stops executing.

There is some way to bypass this ? Cause I can have sync problems in my game

Regards,

Andy

Klaus
Posts: 14191
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Animations stops where moving card/window

Post by Klaus » Fri Mar 12, 2010 2:55 pm

Hi Andy,

we need more info to be able to help you!

Like:
What kind of animation is playing? Do you have a "movestack" handler?


Best

Klaus

bbox
Posts: 3
Joined: Fri Mar 12, 2010 2:25 pm

Re: Animations stops where moving card/window

Post by bbox » Fri Mar 12, 2010 3:16 pm

Hi Klaus,

they are around 52 images and the animation is quite simple:
put 1 into x
repeat with i = 1068 to 1120
show image ID i
move image ID i from 100,400 to 100+(x*10),150 in 10 ticks
put x+1 into x
end repeat
I don't use any other handler for this test

Klaus
Posts: 14191
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Animations stops where moving card/window

Post by Klaus » Fri Mar 12, 2010 3:27 pm

Hi Andy,

hm, "move" is non-blocking so there is no reason why this should happen.

And you say the complete animation just stops? This is even more mysterious :shock:
I have no idea actually, but I can offer that you send me your stack and I will take a look, if you like:
My address: klaus (AT) major-k.de


Best

Klaus

bbox
Posts: 3
Joined: Fri Mar 12, 2010 2:25 pm

Re: Animations stops where moving card/window

Post by bbox » Fri Mar 12, 2010 11:11 pm

Here is the example file, is it an unknow "feature" of RunRev ?
Attachments
test_card.rev.zip
(1.24 KiB) Downloaded 270 times

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Animations stops where moving card/window

Post by Mark » Sun Mar 14, 2010 2:49 pm

Hi,

Moving windows and opening menus, for example, block Revolution's script execution. There's nothing you can do about that, except for making your own non-blocking controls, but then performance will be sluggish anyway.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: Animations stops where moving card/window

Post by bn » Mon Mar 15, 2010 8:38 pm

Andy,
if you say in your example script

Code: Select all

 move the image ID 1005 from 0,0 to 400,400 without messages
the move will finish first before allowing the card to be moved or any menu to be chosen.
This might not be the cure all because you effectively block everything during the moves, but sometimes it helps.
regards
Bernd

Post Reply