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
DirectOS Xtra
Multi lists sorting
Blend given sprite from 0 to given value
Direct Media Video Slider
Drifter
Drop File
Wait for a DirectMedia CuePoint (Index ID as Reference)
Scriptzorz
Get Line Number of Word
Fireworks Xtra
 

 

 

Behavior fading button on 1 sprite

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