Event: Catch(target)

Related Events: press, release, fixcatch, drop, fixdrop
Related Actions: letcatch
See also: FKiSS, Events, Actions

catch(target)

First defined in: FKiSS1
The catch event is triggered when the user first begins to move the target.
Only one catch event should exist for any target.

target

In FKiSS1 to FKiSS3, target may be an object number or cel.
In FKiSS4, target may be an object number, cel, or group.

Example:

;@ catch("shirt.cel")    ; When "shirt.cel" has started moving during a drag...
;@   map("shrtopen.cel") ; Show the open shirt image
;@ unmap("shirt.cel")    ; and hide the shirt image.
;@ catch(#5)             ; When object #5 has started moving during a drag...
;@   sound("ding.wav")   ; then play a sound.
;@ catch(!MyGroup)       ; When !MyGroup has started moving during a drag...
;@   gosub(50)           ; then execute subroutine 50.