home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 61
/
af061a.adf
/
Macros
/
Mix01.clssa
< prev
next >
Wrap
Text File
|
1993-05-01
|
2KB
|
65 lines
/***********************************************************************
GADGET: "VR-Mix" "2" AUTO TYP: "?"
$DAT >>Mix01.clssa<< 01 May 1993 - (C) ProDAD Holger Burkarth
BiDirectional Mix Procedure - Interleaves first and last, then
penultimate and second, frames etc to produce effect.
************************************************************************/
Options Results
Address clariSSA
FailAt 10
AltFail=RESULT
DO FOREVER
Anims=""
GetAnimInfo Source_A
IF RESULT~='' THEN Anims=Anims||" Source_A "
GetAnimInfo Source_B
IF RESULT~='' THEN Anims=Anims||" Source_B "
GetAnimInfo Source_C
IF RESULT~='' THEN Anims=Anims||" Source_C "
GetAnimInfo Source_D
IF RESULT~='' THEN Anims=Anims||" Source_D "
IF Anims~='' THEN DO
SelectAnim Anims "TITLE 'Select an animation@for bidirectional mixing.' REQ"
IF rc~=0 THEN LEAVE
SelectAnim RESULT
GetAnimInfo
PARSE VAR RESULT . "FRAMES" Max .
IF MAX >=2 THEN DO
GetArea
MarkRange=RESULT
PARSE VAR RESULT "FROM" Start "TO" Last .
CurV=Start
CurH=Last
Number=Last-Start
DO FOREVER
IF Number <= 0 THEN LEAVE
SetArea FROM CurV TO CurV UP
Record AREA
IF rc~=0 THEN LEAVE
SetArea FROM CurH TO CurH Up
Record AREA
IF rc~=0 THEN LEAVE
CurV=CurV+1
CurH=CurH-1
Number=Number-1
END
SetArea MarkRange
SelectAnim MASTER
END; ELSE Message '"Frame Number Too Low!"'
END; ELSE Message '"No Source Anim Available!"'
LEAVE
END
FailAt AltFail
exit