Event: Press(target)

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

press(target)

First defined in: FKiSS1
The press event is triggered when the user clicks on the target.
Only one press 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:

;@ press("hair1.cel")   ; When the mouse is clicked on "hair1.cel"...
;@   map("hair2.cel")   ; Show "hair2.cel"
;@   unmap("hair1.cel") ; and hide "hair1.cel".
;@ press(#5)            ; When the mouse is clicked on any cel in object #5...
;@   sound("ding.wav")  ; Play a sound.
;@ press(!MyGroup)      ; When the mouse is clicked on any cel in group !MyGroup...
;@   gosub(50)          ; Execute procedure 50.