Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Drag Ripple-Alphamania
Wait for a Keypress
Progress Bar lingo Script
cXtraGraphicEffect
Composite Xtra
Data Linker Xtra
Image Xport
Director 8 Workshop
ZGTSB-ButtonUp
authoring method docSprite()
 

 

 

Behavior Drop Shadow Static-Alphamania

Added on 6/10/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: MediaLab (website)

Requires Effector Set 2

property sNum
property mode -- static, follow sprite, follow mouse
property lightSprite -- which sprite to follow
property transparency
property red, green, blue
property feather
property offsetX, offsetY

on getBehaviorDescription me
  return "Allows you to add a simple drop shadow to a sprite."
end

on getPropertyDescriptionList me
  set list = [:]
  addProp list, #transparency, [#comment: "Transparency:", #format: #integer, #default: 200, #range: [#max: 255, #min:0]]
  addProp list, #red, [#comment: "Red:", #format: #integer, #default: 0, #range: [#max: 255, #min:0]]
  addProp list, #green, [#comment: "Green:", #format: #integer, #default: 0, #range: [#max: 255, #min:0]]
  addProp list, #blue, [#comment: "Blue:", #format: #integer, #default: 0, #range: [#max: 255, #min:0]]
  addProp list, #feather, [#comment: "Feather:", #format: #integer, #default: 0, #range: [#max: 4, #min:0]]
  addProp list, #offsetX, [#comment: "Offset X:", #format: #integer, #default: 4]
  addProp list, #offsetY, [#comment: "Offset Y:", #format: #integer, #default: 4]
  return list
end

-- apply the drop shadow effect
on beginSprite me
  set sNum = the spriteNum of me
  dropShadow(sprite sNum, [#transparency: transparency, #red: red, #green: green, #blue: blue, #feather: feather, #xOffSet: offsetX, #yOffSet: offsetY])
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail