[files] [anim] anim_panic 1, animtype_stop, loop, 0, endloop, end ;panic [attrib] attr_ymove 1 attr_group 7 [LOCATION] [task] ; Steam flower SEVEN: top petal ;initialize position rotatebyaxis(x, -512, 1) ; put flower in "closed" position closed: ResetGroupSync() ; reset every loop if dr_output7 > 0 goto opening1 endif end closed opening1: rotatebyaxis(x, 182, 30) SyncWithGroup(1) ; all objects in group wait until this is done half_open: resetgroupsync() if dr_output7 = 0 goto closing elseif dr_output7 = 2 goto opening2 endif end half_open closing: rotatebyaxis(x, -182, 30) SyncWithGroup(1) ; all objects in group wait until this is done goto closed opening2: rotatebyaxis(x, 330, 60) SyncWithGroup(1) ; all objects in group wait until this is done wide_open: resetgroupsync() if dr_output7 < 2 goto closing2 endif end wide_open closing2: wait(80) ; time for top pole to stop spinning rotatebyaxis(x,-330, 60) SyncWithGroup(1) ; all objects in group wait until this is done goto half_open end closing2 end