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
sound volum
Wondershare Flash SlideShow Builder
Twain Xtra
Runtime Debugging Utilities
Back Button
Milliseconds
Play/Pause/Rewind a Animated Gif Sprite
DirSaver
MD5
Vector Shapes - Create Spiral & Create Spiral Twist
 

 

 

Behavior Linking 1 sprite to another by location

Added on 5/15/2004

 

Compatibilities:

This item has not yet been rated

Author: spiderman3388

it enables the sprite to be linked by the location to larger sprite

property mysprite
property myloch
property mylocv
property bgloch
property bglocv
property bgsprite
property who

on beginsprite me
  mysprite=sprite(me.spritenum)
  bgsprite=sprite(who)
  myloch=mysprite.loch
  mylocv=mysprite.locv
  bgloch=bgsprite.loch
  bglocv=bgsprite.locv
end

on exitframe me
  set the loch of mysprite to the loch of bgsprite+(myloch-bgloch)
  set the locv of mysprite to the locv of bgsprite+(mylocv-bglocv)
end


on getPropertyDescriptionList me
  set props= [:]
  props.addProp(#who, [#format: #integer, #default: 50, #comment: "whichsprite"])

  return props
end

 


Contact

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

Send e-mail