3D Text    (basic 3D)

Click Here to Download the Director File

Edit the Score Script

on exitFrame
  go
to the frame
end

Create the Word

Type a word with a blank line before and after the word. Choose a typeface.

Select the word on the stage.

Bring up the Window->Inspectors->Property Inspector.

Go to the Text tab   textbutton.gif 
         Change Display: normal to  3D mode
        
Select Direct to stage

Go to the 3D Extruder tab   3dextruderbutton.gif
         Write down the camera x,y,z coordinates
         Add a bevel

Go to the behavior tab   dir_behicon.jpg
         Hold down the
+,  select New Behavior
         Name it rotate me
         Click the script button dir_scriptbut.jpg  in the Property Inspector
         Type the following script:

on beginSprite
  member
(1).model[1].transform.position = vector(0,0,0)
  member(1).model[1].transform.rotation = vector(0,0,0)
  member(1).cameraPosition = vector(140,50,210) --use the number you wrote down.
end

on
exitFrame
  member
(1).model[1].Rotate(0, 2, 0)
  member(1).model[1].transform.preTranslate(0, 0, 5--offset the pivot center
end




Add a button to change the text

property mouseclicks

on beginSprite
  put RETURN & "I want to be a cowboy." & RETURN into member(1)
  mouseclicks =
0
end

on
mouseDown
  mouseclicks = mouseclicks + 1
  if mouseclicks = 1 then
    put RETURN
& "ya hoo" & RETURN into member(1)
    updatestage
    member(1).cameraPosition = vector(140,50,110)
  end if
  if
mouseclicks = 2 then
    put RETURN
& "I want to be a cowboy." & RETURN into member(1)
    updatestage
    member(1).cameraPosition = vector(140,50,210)
    mouseclicks =
0
    end if
end