Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Macromedia Director 7 Lingo training CD
Key Code
Command Line Arguments, 3 State Buttons, and Limited Fields
3DVista Studio Director Xtra
SinTaxer
Live Video
myScreenSaver
3D Groove
replace escape characters
CPS Audio/MIDI Xtra
MediaMacros Xtras Mall
 

 

 

Behavior Sprite controls

Added on 9/8/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: SunilBalan

This is a script to control the sprite animation.

property pControl, pRange, pSpeed, spritenum

on exitframe me
  Case (pControl) of
    "Move horizontally":
      sprite(me.spritenum).loch = sprite(me.spritenum).loch + pRange
    "Move vertically" :
      sprite(me.spritenum).locv = sprite(me.spritenum).locv + pRange
    "Rotate":
      sprite(me.spritenum).rotation = sprite(me.spritenum).rotation + pRange
    "Zoom":
      the Width of sprite(me.spritenum) = the Width of sprite(me.spritenum )+ (the Width of sprite(me.spritenum )* (pSpeed/100.0))
      the Height of sprite(me.spritenum) = the Height of sprite(me.spritenum) + (the Height of sprite(me.spritenum) * (pSpeed/100.0))
  end case
end

on getPropertyDescriptionList
  description =[:]
  addProp description, #pControl,[#comment: "Select your option:", #format:#String,#range:["Move horizontally", "Move vertically", "Rotate", "Zoom"], #default:"Move horizontally"]
  addProp description, #pRange, [#comment: "Speed for rotate and move:", #format:#Integer, #range:[#min:-30,#Max:30],#default:1]
  addprop description, #pSpeed,[#comment:"Speed to zoom (- to zoom in, + to zoom out):",#format:#integer, #default: -10, #range:[#min:-30,#max:30]]
  return description
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