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
Replace embedded fonts in text/field and button members
Roil Button-Alphamania
ADOXtra
Making a simple game
cXtraDateTimePicker
Swipe Cast Members
DeadC Scroll
Mouse click or Key press
Macromedia Director 8.5 Shockwave Studio for 3D: Training from the Source
Simple Paint application
 

 

 

Behavior blending on casts

Added on 4/27/2004

 

Compatibilities:

This item has not yet been rated

Author: spiderman3388

the behavior enables u to blend on two diffrent casts members the cast to fade must be preceeded by the original one

--This Code is my FIRST CODE but ithink it is a good one
--This code is from ur friendly nieghbour *Spiderman*
--I hope u like it


property f
property Mysprite
property i
property icastnum
on mousewithin me
  Mysprite=me.spritenum
  i=me.spritenum -1
  put(1) into f
  if f=1 then
    if the blend of sprite(mysprite)>0 then
      the castnum of sprite(i) =the castnum of sprite(mysprite)+1
      sprite(i).locH = sprite(mysprite).loch
      sprite(i).locV = sprite(mysprite).locv
      sprite(i).type = 1
      sprite(i).foreColor = 255
      set the blend of sprite(mysprite) to the blend of sprite(mysprite) -5
    end if
  end if
end



on mouseleave me
  put(0) into f
end
on exitframe me
  if f=0 then
    if the blend of sprite(mysprite)<100 then
      set the blend of sprite(mysprite)to the blend of sprite(mysprite)+5
    end if
  end if
end

 


Contact

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

Send e-mail