copied from the help:
SwitchToState
Return Value
True if the state could be switched, false if the new state's differing size would have caused the sprite the sprite to pass through a solid tile.
but i don't know how to deal with that.
i had the idea of making a query(?), which asks whether the state is been changed.
so i could make sth. like this: has state changed? if true, do sth other...
for a few days now, i try to script a behaviour for a sprite at a path.
when dx>0 then it has the state right, else left.
but since it is a huge, slow zeppelin, at every state change it needs to turn around slowly.
but i have searched so long, and didn't find a term which tells me if there was a state change, or dx/dy change. maybe an OldDX and OldDY would be usefull.
i get the feeling i started totally wrong with that "when dx>0 then it has the state right, else left." rule. many problems come from here.
looking at the sample sprites brought nothing, because they walk until they are blocked. but my sprite moves on a path.
other try:
now i wanted to compare if the x of the coordinateIndex with the x of the next. but there is no "CoordinateIndex.x"