aeMoveTo don't move any if other exist

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, kevinmiller, robinmiller, malte

Post Reply
JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

aeMoveTo don't move any if other exist

Post by JosepM » Sun Dec 19, 2010 1:14 am

Hi,

Why this code don't move any?

on mouseUp
aeMoveTo the long ID of graphic "panel1", -46,200,1000,"inOUT"
wait 2 second
beep
aeMoveTo the long ID of graphic "panel1", 84,200,1000,"inOUT"
end mouseUp

If I put only one aeMoveTo run fine, but with both nothing is moved.

Why?


Salut,
Josep

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: aeMoveTo don't move any if other exist

Post by malte » Mon Dec 20, 2010 12:27 pm

Hi Josep.

The problem here is the wait statement, as it blocks the messages ae needs from executing.

Either use wait with messages, or do a send in time:

All the best,

malte

JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Re: aeMoveTo don't move any if other exist

Post by JosepM » Mon Dec 20, 2010 1:02 pm

Thanks Malte. :D

Post Reply

Return to “Animation Engine”