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
Exit Windows
aougu.com
Mouse Clicks: left, left double, right, right double
Check for activeX component
All purpose status bar
Importing Externally Linked Flash members
DirectOS Xtra
ProMix
Toggle Stay On Top
System Info into a field member
 

 

 

Behavior Cursor Trails

Added on 9/17/1999

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: AdrianWoods

Drop on a sprite and it"s "follow" sprites

Download PC Source    Download Mac Source
-- edited by gMatter@cranialinteractive.com
-- Original by ||a d r i a n | w o o d s||

property pMySprite
property pImMovin
property pStartPauseAmount  --amount of frames needed to pass until I begin chugging through the list
property pStartPauseAmountCounter  --the pauseAmount counter
property pListCounter
property pMouseList

on beginSprite me
  pMySprite = me.spriteNum
  pImMovin = FALSE
  
  pStartPauseAmountCounter = 0
  
  pListCounter = 0
  pMouseList = []
end beginSprite

on exitFrame me
  
  append pMouseList, the mouseH
  append pMouseList, the mouseV
  
  if pImMovin <> TRUE then
    if pStartPauseAmountCounter = pStartPauseAmount then
      pImMovin = TRUE
      pStartPauseAmountCounter = 0
    end if
    pStartPauseAmountCounter = pStartPauseAmountCounter + 1
  end if
  
  if pImMovin = TRUE then
    pListCounter = pListCounter + 1
    sprite(pMySprite).locH = pMouseList[pListCounter]
    
    pListCounter = pListCounter + 1
    sprite(pMySprite).locV = pMouseList[pListCounter]
    updateStage
  end if
  
end exitFrame


on getPropertyDescriptionList me
  pdList = [:]
  
  setaProp pdList, #pStartPauseAmount, [#comment: "Delay in frames", ¬
    #format: #integer, #default: 3, #range: [#min: 1, #max: 11]]
  
  return pdList
end getPropertyDescriptionList

 


Contact

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

Send e-mail