How to exit / cancel a currently running aemove to event?

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

Moderators: heatherlaine, kevinmiller, robinmiller, malte

Post Reply
Howlernator
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 18
Joined: Wed Oct 13, 2010 4:44 am

How to exit / cancel a currently running aemove to event?

Post by Howlernator » Sat Oct 08, 2011 12:20 pm

Hiya Malte,

Any hints on how to cancel / exit a currently executing aemoveto command? (after it's been issued, from a different handler)

I've tried cancelling items in the pending messages(stops it for a second, but seems to pick up original anim on next issued aemoveto command, setting the loc of the same object (just gets overidden again).

Issuing ANOTHER aemoveto (loc of itself!) command to the same object DOES seem to work, but introduces some other delays in the scripts I think.

is there a flag or another command that can be set somehow?

Cheers,

Anthony.

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

Re: How to exit / cancel a currently running aemove to event?

Post by malte » Mon Oct 10, 2011 4:15 pm

Hi Anthony,

use

aeStopmoving [reference to the control that moves] -- must be the same reference you used in aeMoveTo

or aeStopMoving "all"

Cheers,

malte

Post Reply

Return to “Animation Engine”