Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
File Save as..
cXtraTreeView
FADER
Farbflash.de
OSControl Xtra Review
Inconsistent Buttons
cXtraSendMail
Ceiling and floor math functions
Binary Xtra
Vector Shape - Create Ellipse (Improved)
MediaMacros Xtras Mall
 

 

 

Behavior Move To Top

Added on 7/8/1999

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

Rating:

Author: MediaMacros (website)

This behavior uses the LocZ property to move the clicked sprite to the top of other sprites using the behavior. This works well with puzzles, drag behaviors, cards, etc.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

property spriteNum

global topSprite

on beginSprite me
  if topSprite = void then topSprite = spriteNum
  if topSprite < spriteNum then topSprite = spriteNum
end

on endSprite me
  sprite(spriteNum).locZ = spriteNum
end

on mouseDown me
  topSprite = topSprite + 1
  sprite(spriteNum).locZ = topSprite
end

on getPropertyDescriptionList me
  return "This behavior uses the LocZ property to move the clicked sprite to the top of other sprites using the behavior.  This works well with puzzles, drag behaviors, cards, etc."
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