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
ColorCursor
Go Frame X
Billenium Transitions Xtra v1.3
A Simple Coloring Book
3d 1st-person shooter
Tic Tac Toe
free MD5 hashing Xtra
Pulling in Those Graphics
BASS Xtra v1.0
Sprite Blender - Distance
 

 

 

Behavior Slide show

Added on 11/20/2000

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: SunilBalan

Basic slide show behavior

--pMembers: Just specify how many members you want to animate from your cast member
--pName: You have to rename the total number of cast members you wish to animate. Here I have specified my members as "BALAN" and I have seven members for a slide show, so I will name the members as "BALAN1, BALAN2, BALAN3.....BALAN7
--pChar: After naming your all members you should specify the number of characters of your member, in my case it"s 6.
property pMembers, pName, pChar

on getBehaviorDescription
  return "pMembers: Just specify how many members you want to animate from your cast member"&RETURN&RETURN& "pName: You have to rename the total number of cast members you wish to animate. Here I have specified my members as "BALAN" and I have seven members for a slide show, so I will name the members as "BALAN1, BALAN2, BALAN3.....BALAN7"&RETURN&RETURN& "pChar: After naming your all members you should specify the number of characters of your member, in my case it"s 6."
end getBehaviorDescription


on getPropertyDescriptionList
  set description = [:]
  addprop description, #pMembers, [#comment: "How many members you want to animate", #format:#integer, #range:[#min:2, #max:20], #default:7]
  addprop description, #pName, [#comment: "What is the name of your member", #format:#string, #default:"BALAN"]
  addprop description, #pChar, [#comment: "How many characters is there in your member", #format:#integer, #range:[#min:2, #max:10], #default:6]
  return description
end getPropertyDescriptionList


on mousedown me
  set pMemberNumber = the memberNum of sprite the currentspritenum
  set pMemberName   = the name of member pMemberNumber
  set pictNumber =  integer(char pChar of pMemberName)
  if pictNumber >= pMembers then
    set newpictNumber = 1
    -- Type in your command if you wish to navigate after slide show.
  else
    set newpictNumber = pictNumber + 1
  end if
  set newMemberName   = pName & newpictNumber
  set newMemberNumber = the number of member newMemberName
  set the memberNum of sprite the currentspritenum to newMemberNumber
  updateStage
end

 


Contact

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

Send e-mail