What is syntax? Syntax is the set of rules regarding the structure of symbols in an expression to achieve a certain result. For example, if we want our character to perform an animation, the donacode syntax to achieve that is: "@CHARACTERNAME is animation_name". Think of syntax as the template of the code we need to get a certain result. What symbols are we using? What is capitalized, what is not capitalized? Where do I plug in certain information? These are things you'll think about with syntax.
Learning donacode syntax is your first step in creating stories. We'll be walking you through the syntax for what we're learning as we go, but let's list all the syntax that we'll be using in this course below. You may not know what each of them mean as of right now, but you will as you progress through the course. Keep this lesson as a way to familiarize yourself with donacode and as a good reference point.
set format spotlight
set format cinematic
EXT. BOARDWALK ATLANTIC - DAY
INT. AIRPLANE SEATS - DAY
@cut to zone 1
@cut to zone 2
@cut to zone 3
@transition fade in black .25
@transition fade out black .25
@transition fade in white .25
@CHARACTERNAME stands screen center
@YOU stands screen left
@YOU enters from right to screen center
@CHARACTERNAME spot 1.280 160 0
@YOU spot 0.955 199 10
@YOU spot 1.280 -200 0 THEN YOU walks to spot 1.280 160 0
@CHARACTERNAME changes into outfit_name
@YOU changes into DateNight1_Ch1
CHARACTER (animation_name)
Hey, I'm Amber! Nice to meet you.
YOU (talk_agree_happy)
I'm really glad you're here.
CHARACTER (animation_name)
(What's that smell?)
YOU (listen_nod_happy_loop)
(Just smile and nod.)
NARR
Will you make it in time for Alex's show?
NARR (YOU)
I rushed as fast as I could to Alex's show.
NARRATOR
Will you make it in time for Alex's show?
NARRATOR (YOU)
I rushed as fast as I could to Alex's show.
@CHARACTERNAME is animation_name
@YOU is laugh_chuckle
Have feedback about this lesson? Let us know here!