Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Flash Member Controls
Blend given sprite from 0 to given value
MPEG / ActiveMovie ActiveX control
MD5 algorithm
3D games online. Developed with Macromedia Director.
Marks button, 4 picts with rollover, rolloff
A* Pathfinder in Lingo
Windows and Cascading Menus for Shockwave
System Tools
List display, export
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail