|
|
|
Button - De-Xploding behaviour
Added on 5/20/2000
|
Part of the Xploding Text behaviors. Full set includes Xploding Text Prepare Movie, De-Xplode Text position relative, De-Xplode Random, Xplode Text, De-Xplode Button, and Wait for Xplode to finish.
Download PC Source Download Mac Source
-- Xplodingtext by Noisecrime 14 Sept 1999 @ NOISECRIME PRODUCTIONS
-- EMAIL: simtek@dircon.co.uk
-- THIS BEHAVIOUR IS FREE TO USE
-- IF YOU USE ALL OR ANY PART OF THESE BEHAVIOURS, YOU MUST LEAVE IN THE ACKNOWLEDGEMENT TO NOISECRIME PRODUCTIONS WITHIN THE BEHAVIOURS
-- ALSO YOU MUST ACKNOWLEDGE ADDITIONAL PROGRAMING BY NOISECRIME IN THE CREDITS
-- updated to allow for exploding existing buttons, before de-exploding
on getBehaviorDescription me
return ("This behaviour written by NoiseCrime 14 sept 1999" & RETURN & "This is the button object, it waits untill all letters for a word have arrived¬
at their final position, then allows the button to be active" & RETURN & "The behaviour will be added to the invisible button" )
end
property NCletterStart
property NCletterEnd
property NCjumpTO
property NCbuttonActiveFlag
property NCexplodeframe
global theNextJumpIs
on getPropertyDescriptionList me
set description = [:]
addprop description, #NCletterStart, [#comment: "Enter START sprite of word",#format: #integer , #default: 1]
addprop description, #NCletterEnd, [#comment: "Enter END sprite of word",#format: #integer , #default: 1]
addprop description, #NCjumpTO, [#comment: "Jump to Marker (after exploding)" ,#format: #marker, #default:"a" ]
addprop description, #NCexplodeframe, [#comment: "Framemarker to explode the text before jumping" ,#format: #marker, #default:"a" ]
return description
end
on beginsprite me
set NCbuttonActiveFlag to 0
end
on checkrollover me
checkactivebutton me
if NCbuttonActiveFlag = 1 then cursor [41,42]
end
on mousewithin me
checkrollover me
end
on mouseenter me
checkrollover me
end
on mouseleave me
cursor -1
end
on mouseup me
checkactivebutton me
if NCbuttonActiveFlag = 1 then
cursor -1
set theNextJumpIs to NCjumpTO
go to NCexplodeframe
end if
end
|
|