Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
goMU-LE (free)
Bubble Sort for Points and Lists
simBrowser1.0
DMFade
Image capture Xtra
Checking an open database - Valentina
Toggle DirectToStage Property of a Flash Sprite
Moving MIAWs with lingo
Create a Shortcut on desktop
Sound not playing
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