There are a couple of problems.
-
You only need one integer with for example the name ‘State’. So no integer for every state.
-
You need to add this integer as a condition to every transition, but every transition need a different value. For example,
0
for idle,1
for move forward and-1
for move backwards. -
Be sure you use only the script that you want to use.