Given this FSM my little guy isnt playing the runningleft and runningright animations properly.
-In the wait for input state when i keep the touchscreen pressed it enters the charging state,after that i get X value of the touch.
-In the checkside I check that value against the Width of the screen,if i tapped to the left of the value EX:screen width is 480,480/2=240,with this i check if the tap is < or > than 240 to decide which side I should run,but it doesnt enter properly,its just very random. Any idea and thanks in advanced!
PS:Also,is there an input to keep the touchscreen pressed? the charging state always ends at 1(it goes up from 0 in like 1 second).I'm using input touches asset.