True, also, try condensing your scripts more like such:
:state=0:animate=0
:state=0:state=1
translates to
:state=0:animate=0,state=1
This makes your script a little more organized, and it's more readable.
Also, heres a tip
To remember where colons go, think of it like this.
You want 1 colon to signal the start of conditions (in otherwords, it's the first thing in every line).
You also want one colon to signal the start of actions.
Use commas to seperate conditions from conditions and actiona from actions
:condition1,condition2:action1,action2
Good first start
"I can't imagine what this place would have been like if I hadn't found you here." - BJ Hunnicutt